in reply to Re^2: Handling multiple output files simultaneously using arrays of filehandles and filenames
in thread Handling multiple output files simultaneously using arrays of filehandles and filenames
You need $! because otherwise you only know that there's been an error of some sort and not what specific error occurred. Just grobbling through the open(2) manual page on OS X there's 22 distinct error codes in 32 different cases which can be returned at the C level.
The trailing newline is mostly an aesthetic choice though.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Handling multiple output files simultaneously using arrays of filehandles and filenames
by bliako (Monsignor) on Jan 21, 2021 at 20:57 UTC | |
by Cosmic37 (Acolyte) on Jan 21, 2021 at 21:17 UTC | |
by bliako (Monsignor) on Jan 21, 2021 at 21:49 UTC | |
Re^4: Handling multiple output files simultaneously using arrays of filehandles and filenames
by Cosmic37 (Acolyte) on Jan 21, 2021 at 21:04 UTC |
In Section
Seekers of Perl Wisdom