[Dancer-users] Dancer::MIME return value
thecrux at gmail.com
thecrux at gmail.com
Mon Oct 31 16:08:48 CET 2011
On Mon, Oct 31, 2011 at 10:47:59AM -0400, Naveed Massjouni wrote:
...
> >> $ perl -c -Ilib lib/Dancer/Core/MIME.pm ; echo $?
> >> Useless use of a constant (42) in void context at lib/Dancer/Core/MIME.pm
> >> line 77.
> >> 255
> >>
>
> I don't understand. All modules are required to end with a true value.
> Usually, it is 1; but 42; should be fine. What am I missing?
http://stackoverflow.com/questions/1860869/what-are-valid-perl-module-return-values/1864035#1864035
"The danger of using the return value, aside from obfuscation, is that it
only works once."
--
Vladimir Lettiev aka crux ✉ theCrux at gmail.com
More information about the Dancer-users
mailing list