Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and here's the error I'm gettingmy ($self) = @_; my $templateName = (defined $self->{FormConfig}{template} ? $self +->{FormConfig}{template} : ''); if (-e $templateName) { open (FILE, $templateName); $self->@File = <FILE>; close (FILE);
Array found where operator expected at (eval 5) line 1150, at end of l +ine (Missing operator before ?) syntax error at (eval 5) line 1150, near "->@File " Global symbol "@File" requires explicit package name at (eval 5) line +1150.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: declaring an array within a package
by sauoq (Abbot) on Dec 19, 2003 at 00:16 UTC | |
|
Re: declaring an array within a package
by Joost (Canon) on Dec 19, 2003 at 00:19 UTC | |
|
Re: declaring an array within a package
by Zaxo (Archbishop) on Dec 19, 2003 at 00:17 UTC | |
by sauoq (Abbot) on Dec 19, 2003 at 00:23 UTC |