I've got a problem (with IPC::PerlSSH::IO): somehow numeric mode values doesn't seem to work, while their symbol equivalents work. Now, as I'm doing Fuse work here, I get proper numeric mode values as "open-requests" and have to pass these on to IPC::PerlSSH::IO::open(), an open-implementation that only accepts the symbolized form, as it seems. Is there any way to convert between numeric<->symbols? (As mocked up in "magig_func" below)?
my $symbols = magic_func(some numeric mode value); # $symbols set to '<', for "read"
my $symbols = magic_func(another numeric mode value); # $symbols set to '>', for "write"
my $symbols = magic_func(yet another numeric mode value); # $symbols set to '+<', for "read+"
If anyone can tell me why IPC::PerlSSH::IO::open() only works when I pass it symbols - please do so.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|