Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: removing leading 0's

by RichardK (Parson)
on Oct 03, 2015 at 15:59 UTC ( [id://1143717]=note: print w/replies, xml ) Need Help??


in reply to removing leading 0's

OO10 is an octal number equal to 8 (decimal) therefore $y = 8 not 10.

This may help explain

perl -E 'say 0010,",","0010";' >8,0010

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-16 04:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found