On 11-07-29 07:15 AM, Shlomi Fish wrote:
open my $output_fh, '>', $output_filename
        or die "Cannot open '$output_filename' for writing - $!";

binmode($output_fh);

These can be combined into one statement:

open my $output_fh, '>:raw', $output_filename
    or die "Could not open '$output_filename' for writing - $!";

This is one advantage of using the three-argument open.


--
Just my 0.00000002 million dollars worth,
  Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

"Make something worthwhile."  -- The Dear Hunter

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to