Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting syntax error #4

Open
Ravindra-Raut opened this issue Jul 5, 2018 · 3 comments
Open

getting syntax error #4

Ravindra-Raut opened this issue Jul 5, 2018 · 3 comments

Comments

@Ravindra-Raut
Copy link

getting following error while running it.
syntax error at assemblathon_stats.pl line 301, near "$size qw(1000 10000 100000 1000000 10000000)"
Can't use global $_ in "my" at assemblathon_stats.pl line 302, near "{ $_ "
Global symbol "$size" requires explicit package name (did you forget to declare "my $size"?) at assemblathon_stats.pl line 302.
Global symbol "$type" requires explicit package name (did you forget to declare "my $type"?) at assemblathon_stats.pl line 302.
Global symbol "$matches" requires explicit package name (did you forget to declare "my $matches"?) at assemblathon_stats.pl line 303.
Global symbol "$count" requires explicit package name (did you forget to declare "my $count"?) at assemblathon_stats.pl line 303.
Global symbol "$desc" requires explicit package name (did you forget to declare "my $desc"?) at assemblathon_stats.pl line 305.
Global symbol "$type" requires explicit package name (did you forget to declare "my $type"?) at assemblathon_stats.pl line 305.
Global symbol "%sizes_to_shorthand" requires explicit package name (did you forget to declare "my %sizes_to_shorthand"?) at assemblathon_stats.pl line 305.
Global symbol "$size" requires explicit package name (did you forget to declare "my $size"?) at assemblathon_stats.pl line 305.
Execution of assemblathon_stats.pl aborted due to compilation errors.

@ThymeLy
Copy link

ThymeLy commented Jun 21, 2019

Hi, I have the same problem as well. Have you managed to solve it?

@edmorenoed
Copy link

This solved it for me!
Visual Studio was highlighting the three quote word operators, qw, of the script bright red. This was a hint.
It seems that the whole qw() expression needs to be inside parenthesis like this: (qw()), as explained here: http://blogs.perl.org/users/rurban/2010/09/qw-in-list-context-deprecated.html.

I changed the three instances of qw in the scripts and it works fine now.

Remember to place FAlite.pm in the same directory as assemblathon_stats.py.
Good luck.

FYI, my perl is:

This is perl 5, version 26, subversion 2 (v5.26.2) built for darwin-thread-multi-2level

@ThymeLy
Copy link

ThymeLy commented Jun 22, 2020

Thank you for the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants