The scalar $self is a reference to something if you mean to bless it into a class defined in your package. The statement $self = @_; sets it equal to the number of arguments. That is not the cause of the message, but it indicates you need to study perl references.
The statement $self->@File = <FILE>; is semantically incorrect. You may mean something like $self->{'File'} = [<FILE>]; which puts a reference to an array of lines from the file into $self's 'File' data element.
Update: Oops, didn't check my memory against the question. sauoq++ is correct, of course. Doesn't change the argument, just the value $self gets.
After Compline,
Zaxo
In reply to Re: declaring an array within a package
by Zaxo
in thread declaring an array within a package
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |