But getting this error: Global symbol "$N" requires explicit package name (did you forget to declare "my $N"?) at code.pl line 12. syntax error at code.pl line 14, near "say" Execution of code.pl aborted due to compilation errors. What do I do wrong?#!perl use strict; use warnings; use 5.020; my @Org = (9, 1,0); my $N= #Org; say "N = $N"; say @Org;
Sorry for a stupid question! But I want to learn: 've seen this kind of error many times in my programs -- probably I'm missing something very basic.
Thank you! :)
In reply to Strange compile error? by gelbukh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |