NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Oops (Score:1)
And, out of interest, do you use
@methodsanywhere else? Looks like a useless use of variable to me. [qw/.../] is perfectly fine...Re:Oops (Score:3, Interesting)
Oh goody. You're going to slap yourself :)
The first thing you do is create a file named "Foo.pm":
Then, in the same directory, run the following script:
That prints "Foo". Foo's import method gets called with no arguments because the assignment to @methods happens after the use statement, even though strict does not complain because @methods has al
Re:Oops (Score:2)
--
xoa
Reply to This
Parent