in reply to Re^5: looking for feedback on my first script
in thread looking for feedback on my first script
I disagree about printf() errors.
With normal file operations, what I said is true. It is almost impossible for a print or printf to "fail" once a local Hard Disk file handle is open. One way would be "File system full", but in that case, a fatal exception is thrown - the calling program won't see that.
With normal file operations, what I said is true. It is almost impossible for a print or printf to "fail" once a local Hard Disk file handle is open. One way would be "File system full", but in that case, a fatal exception is thrown - the calling program won't see that.
I did make a mistake in interpreting the exact situation. I would have written: return sprintf "..." because I favor explicit return statements.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: looking for feedback on my first script
by haukex (Archbishop) on Jan 10, 2021 at 00:58 UTC | |
Re^7: looking for feedback on my first script
by shmem (Chancellor) on Jan 10, 2021 at 02:53 UTC | |
by Marshall (Canon) on Jan 14, 2021 at 03:36 UTC |
In Section
Seekers of Perl Wisdom