Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: octal number mysteriously changes after pass to subroutine

by Corion (Patriarch)
on Feb 01, 2023 at 19:48 UTC ( [id://11150076]=note: print w/replies, xml ) Need Help??


in reply to Re^2: octal number mysteriously changes after pass to subroutine
in thread octal number mysteriously changes after pass to subroutine

The one embedded in the source code is an octal number string literal to Perl. The other is a string to Perl, as it comes from @ARGV.

If you want to treat incoming parameters as octal, see the oct function.

Updated: s/number string/number literal/, suggested by LanX

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found