AlexFromNJ has asked for the wisdom of the Perl Monks concerning the following question:
How to make Perl NOT to throw out the message below? (it's without dashes, so it's not from my "print")my $result = sysopen my $handle, "abc", O_WRONLY | O_CREAT; close $handle; eval {$result = flock $handle, LOCK_EX | LOCK_NB}; if ($@) { print "------$@------"; }
(I want just to detect this case, I don't want any confusing messages)flock() on closed filehandle $handle at ...line ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A flock question
by SuicideJunkie (Vicar) on Oct 26, 2011 at 17:44 UTC | |
|
Re: A flock question
by duelafn (Parson) on Oct 26, 2011 at 17:43 UTC | |
by ikegami (Patriarch) on Oct 26, 2011 at 18:19 UTC | |
|
Re: A flock question
by jwkrahn (Abbot) on Oct 26, 2011 at 22:12 UTC | |
|
Re: A flock question
by Marshall (Canon) on Oct 26, 2011 at 23:40 UTC |