Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: open(): Is there a simple way to map between numeric open modes and "symbol modes"?

by Anonymous Monk
on Feb 08, 2013 at 04:06 UTC ( [id://1017755]=note: print w/replies, xml ) Need Help??


in reply to open(): Is there a simple way to map between numeric open modes and "symbol modes"? (solved)

somehow numeric mode values doesn't seem to work, while their symbol equivalents work.

That is the difference between open and sysopen, one takes strings for mode, the other numbers, and IPC::PerlSSH::IO appears to use open

Replies are listed 'Best First'.
Re^2: open(): Is there a simple way to map between numeric open modes and "symbol modes"?
by isync (Hermit) on Feb 08, 2013 at 14:04 UTC
    AHA!!

    So instead of re-translating numeric to symbols in a big if/elsif behemoth, I think, it's easier to simply write a new function that relies on sysopen().

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found