[Dancer-users] Dancer::MIME return value
ambs+dancer at perl-hackers.net
Mon Oct 31 19:52:35 CET 2011
On 31/10/2011 15:08, thecrux at gmail.com wrote:
> 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.
>> 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?
> "The danger of using the return value, aside from obfuscation, is that it
> only works once."
The 42 is my fault. I use non standard return values in lot of modules,
and never had a complain. :)
I do not mind to change it, but I would like to understand why issuing
that warning is a problem. Try to run the same line of code against
More information about the Dancer-users