http://www.perlmonks.org?node_id=911123


in reply to Perlscript is not generating output in files

ALWAYS CHECK THE RETURN VALUE OF SYSTEM CALLS SUCH AS open.

open( my $fh, '>', "bar" ) or die "Can't write to bar: $!\n";

The cake is a lie.
The cake is a lie.
The cake is a lie.