Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: converting strings to intsby Hue-Bond (Priest) |
on Mar 20, 2010 at 16:35 UTC ( [id://829822]=note: print w/replies, xml ) | Need Help?? |
If you know you are going to be trying to treat null strings as numbers, turn it off: Then perlcritic will complain: Warnings disabled at line 10, column 5. See page 431 of PBP. (Severity: 4)Solution 1 (ugly): no warnings 'numeric'; ## no critic (TestingAndDebugging::ProhibitNoWarnings) Solucion 2 (dangerous): add the following to ~/.perlcriticrc:
--
In Section
Seekers of Perl Wisdom
|
|