Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Whats with the autoincrementation of a string

by LanX (Canon)
on Jun 14, 2013 at 21:36 UTC ( #1039041=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Whats with the autoincrementation of a string
in thread Whats with the autoincrementation of a string

Sure, anything with leading digits which isn't a proper number is dealt by atoi in numeric context, IIRC that's due to some C legacy.

DB<109> @a=a..c => ("a", "b", "c") DB<110> $a[" 1x"] => "b"

plz note: only with no warnings!

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re^3: Whats with the autoincrementation of a string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-04 05:34 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 (57 votes), past polls