Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Why no warnings for 1 in void context?by samtregar (Abbot) |
on Jul 16, 2005 at 16:54 UTC ( [id://475480]=note: print w/replies, xml ) | Need Help?? |
The final line of a required module isn't in void context - it's the return value of the require. Try putting something else there and you'll see there's no warning. I worked with a guy who put (unfortunately copyrighted) poetry in a string at the end of his modules.
-sam
In Section
Seekers of Perl Wisdom
|
|