![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Regarding STDOUT and indirect object notation for printby kennethk (Abbot) |
on Dec 29, 2009 at 21:07 UTC ( #814822=note: print w/replies, xml ) | Need Help?? |
A simple implementation to explain gmargo's concept:
Foo.pm:
script.pl:
Works fine, but if you remove the require Foo; line, you get the error Can't locate object method "method" via package "Foo" at script.pl line 9. perl needs the require statement to find and compile the source files.
In Section
Seekers of Perl Wisdom
|
|