Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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"?

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
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 wandering the Monastery: (7)
As of 2016-07-25 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (230 votes). Check out past polls.