in reply to Re^2: help in ruby code to perl
in thread help in ruby code to perl
In my defence ;-) I was just trying to do a direct translation. If I was going to do it in idiomatic Perl I would have done it differently.
perldoc PerlIO [ SNIP ] :raw The ":raw" layer is defined as being identical to calling " +binmode($fh)" - the stream is made suitable for passing binary data i.e. each byte is pas +sed as-is. The stream will still be buffered.
Also, you should always verify that open worked correctly before trying to use its filehandle.
:-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: help in ruby code to perl
by ikegami (Patriarch) on Sep 20, 2009 at 17:51 UTC | |
by jwkrahn (Abbot) on Sep 20, 2009 at 18:44 UTC | |
by ikegami (Patriarch) on Sep 20, 2009 at 18:55 UTC |