in reply to Re^3: guidelines for inline coding
in thread guidelines for inline coding
What are you going to do if it returns false?
use strict; use File::Temp 'tempfile'; my $fh = tempfile(UNLINK=>1); select($fh); print "foo" or warn "print 1 fail"; close $fh; print "bar" or warn "print 2 fail"; __END__ print 2 fail at - line 8.
... or I could die, print somewhere else like a log, etc.
While of course I still wouldn't check every print call in a normal program, I take your post to be implying that there's nothing one can do and any checking of the return value is "Completely pointless".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: guidelines for inline coding
by BrowserUk (Patriarch) on Sep 25, 2014 at 20:56 UTC | |
by Anonymous Monk on Sep 25, 2014 at 21:12 UTC | |
by BrowserUk (Patriarch) on Sep 25, 2014 at 21:27 UTC | |
by Anonymous Monk on Sep 25, 2014 at 21:47 UTC |