in reply to Re^3: close statement issue
in thread close statement issue
to verify that close() is waiting for the process to finish and putting its status in $?.$ perl -we'open FOO, q<| sh -c "sleep 5;exit 123"> or die; print "clos +ing:\n"; close FOO; print $? >> 8' closing: 123
(Update: removed lexical filehandle; I'd really like to see you try the above on your SunOS 5.005.)
I'm looking for a job.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: close statement issue
by Moron (Curate) on Mar 02, 2007 at 12:17 UTC |