Consider this code:
Which gives me this:package Errors; require Exporter; use strict; our @ISA = qw(Exporter); our @Export = qw( error, ff_error, HTMLErrorFormat, ); # ... more stuff...
>perl -c Errors.pm Bareword "our" not allowed while "strict subs" in use at Errors.pm lin +e 14. Array found where operator expected at Errors.pm line 14, at end of li +ne (Do you need to predeclare our?) syntax error at Errors.pm line 14, near "our @ISA " Global symbol "@ISA" requires explicit package name at Errors.pm line +14. Bareword "our" not allowed while "strict subs" in use at Errors.pm lin +e 15. Array found where operator expected at Errors.pm line 15, at end of li +ne (Do you need to predeclare our?) Global symbol "@Export" requires explicit package name at Errors.pm li +ne 15.
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
In reply to Trouble using "our" in Perl 5.005.03 by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |