Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Unwanted Octal to Decimal Conversion

by ysth (Canon)
on Feb 19, 2004 at 01:34 UTC ( [id://330116]=note: print w/replies, xml ) Need Help??


in reply to Unwanted Octal to Decimal Conversion

You really haven't given us enough information as to how you are *using* these values. Normally you would want to keep even octal numbers in numeric form and convert them when you store or display to whatever format you want.

You can preserve e.g. octal string form but have it come out as the correct number in a decimal context with:

use Scalar::Util "dualvar"; use constant Foo => dualvar(0040,"0040");

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-26 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found