in reply to use x; equivalent
pack is a Perl keyword, so the parser doesn't know what to do with that construct. I suggest changing the name of your module.
Of course, if the documentation had shown the unbroken way to call class methods, you wouldn't have had this problem:
BEGIN { require pack; pack::->import(); }
Update: fixed the code to use the really unambiguous way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use x; equivalent
by unclesmiff (Initiate) on Feb 22, 2006 at 18:13 UTC | |
Re^2: use x; equivalent
by ikegami (Patriarch) on Feb 22, 2006 at 18:04 UTC | |
Re^2: use x; equivalent
by vladb (Vicar) on Feb 22, 2006 at 17:57 UTC |
In Section
Seekers of Perl Wisdom