2008/9/22 Stephen Reese <[EMAIL PROTECTED]>:
>
> $ ./acl-parse.pl

> Global symbol "$x" requires explicit package name at ./acl-parse.pl
> line 22.
> Global symbol "$foo" requires explicit package name at ./acl-parse.pl
> line 23.


John is right.
You should always 'use strict' at the begin of the scripts.
Here you didn't declare the variables, so you got the errors.
You could declare them with:
my $x = ...;
my $foo = ...;

For Perl's variable scope, see this:
http://perl.plover.com/FAQs/Namespaces.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to