kgnickl has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Tie::STDERR \&HandleError; print "Before\n"; die "....."; print "After\n"; sub HandleError(){ my ($error) = @_; &SomeActivity('0',$error); } sub SomeActivity(){ my ($rc, $error) = @_; print $rc . "\n" . $error; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Double error when print w/ Tie::STDERR
by Khen1950fx (Canon) on May 11, 2011 at 21:48 UTC |