Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #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


Comment on Re: open(): Is there a simple way to map between numeric open modes and "symbol modes"?
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
Node Status?
node history
Node Type: note [id://1017755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-10-26 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls