freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble using "our" in Perl 5.005.03
by fglock (Vicar) on Jun 12, 2003 at 18:11 UTC | |
|
Re: Trouble using "our" in Perl 5.005.03
by hardburn (Abbot) on Jun 12, 2003 at 18:03 UTC | |
|
Re: Trouble using "our" in Perl 5.005.03
by arthas (Hermit) on Jun 12, 2003 at 18:18 UTC |