Just another Perl shrine | |
PerlMonks |
Re^3: warnings pragma anomalyby BrowserUk (Patriarch) |
on Oct 19, 2015 at 21:59 UTC ( [id://1145357]=note: print w/replies, xml ) | Need Help?? |
As the return value of this expression is returned and checked for truthness, it's not used in a void context. Are you sure about that? If you end a package with just: 1; no warning is produced; but if you end it with just: 42;:
Although it is returned and checked at runtime; at the point of parsing it is in a void context. And you can't avoid that by prefixing a return statement either:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|