Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Unwanted Octal to Decimal Conversion

by duff (Parson)
on Feb 18, 2004 at 22:29 UTC ( [id://330081]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Unwanted Octal to Decimal Conversion
in thread Unwanted Octal to Decimal Conversion

The reason I like this is that it makes evaluation of permissions in the code much simpler because they are already in octal form. Thus my permssions checking can do bitwise operations without having to reformat them.

Why would you have to "reformat" them to do bitwise operations? octal 040 and decimal 32 have exactly the same bit pattern.

  • Comment on Re: Re: Re: Unwanted Octal to Decimal Conversion

Log In?
Username:
Password:

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

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

    No recent polls found