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.
:-)In reply to Re^3: help in ruby code to perl
by jwkrahn
in thread help in ruby code to perl
by eviltom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |