The error you got was very explanatory. It told you exactly where the problem is...
$self->@File = <FILE>;
What made you think that would work? Did you just make that syntax up and wish yourself good-luck?
I think you probably want something like this
instead.@{$self->{File}} = <FILE>;
-sauoq "My two cents aren't worth a dime.";
In reply to Re: declaring an array within a package
by sauoq
in thread declaring an array within a package
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |