in reply to Numification of strings
Isn't this behaviour mainly hiding ugly bugs?This behavior seems consistent and indeed in/of use, for instance, consider when quickly wanting to start a counter:
C:\Documents and Settings>perl - print "$hash{count} \n"; print -$hash{count},"\n"; print --$hash{count},"\n"; print ++$hash{count},"\n"; __END__ 0 -1 0 C:\Documents and Settings>
Update: did s/' '/''/, thanks Jenda for noticing the unintended typo as '' and ' ' are not the same thing. Added technical corrections too..
Excellence is an Endeavor of Persistence. A Year-Old Monk :D .
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Numification of strings
by Jenda (Abbot) on Aug 02, 2010 at 13:32 UTC | |
by LanX (Saint) on Aug 02, 2010 at 14:00 UTC | |
by Jenda (Abbot) on Aug 02, 2010 at 14:05 UTC | |
by LanX (Saint) on Aug 02, 2010 at 14:12 UTC | |
Re^2: Numification of strings
by LanX (Saint) on Aug 02, 2010 at 11:28 UTC | |
by ww (Archbishop) on Aug 02, 2010 at 12:33 UTC | |
by LanX (Saint) on Aug 02, 2010 at 12:52 UTC | |
by ikegami (Patriarch) on Aug 03, 2010 at 05:11 UTC | |
by LanX (Saint) on Aug 02, 2010 at 12:38 UTC | |
by ikegami (Patriarch) on Aug 03, 2010 at 05:19 UTC | |
by LanX (Saint) on Aug 03, 2010 at 13:50 UTC | |
by ikegami (Patriarch) on Aug 03, 2010 at 14:15 UTC | |
|
In Section
Seekers of Perl Wisdom