Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Numification of strings

by LanX (Canon)
on Aug 02, 2010 at 11:43 UTC ( #852451=note: print w/ replies, xml ) Need Help??


in reply to Re: Numification of strings
in thread Numification of strings

... and gives a warning.

ah, thank you!

I missed there are warnings while testing in the debugger¹!

However this gives me the possibility to change $SIG{__WARN__} to deal with this kind of errors...e.g. by dieing.

Cheers Rolf

1)... hmm but why?

UPDATE:

OK starting the debugger with -w switch helps.

:~$ perl -w -de0 ... DB<1> $x="6gg" DB<2> p -$x Argument "6gg" isn't numeric in negation (-) at (eval 6)[/usr/share/pe +rl/5.10/perl5db.pl:638] line 2. ...


Comment on Re^2: Numification of strings
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852451]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2015-07-07 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls