Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Numification of strings

by LanX (Chancellor)
on Aug 02, 2010 at 12:52 UTC ( #852467=note: print w/ replies, xml ) Need Help??


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

> > "but it's only about converting undef"

converting undef is differently handled with ++, enabling warnings doesn't help here!

see Re^3: Numification of strings

Cheers Rolf

Replies are listed 'Best First'.
Re^5: Numification of strings
by ikegami (Pope) on Aug 03, 2010 at 05:11 UTC
    More like "doesn't hurt".
    ++$count{$_} for @list;
    would have to be written
    $count{$_} = $count{$_}//0 + 1 for @list;
    if warnings had an effect.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2016-06-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (326 votes). Check out past polls.