in reply to Re^2: Execute function before exit of do() block
in thread Execute function before exit of do() block
Not all helper scripts need (or even can) act on the detected bad event. That is why the detection of the bad event needs to happen inside the helper script, rather than the main script.
What would detection of the bad event (...) inside the helper script script give you, if that helper script cannot act on the detected bad event as you are saying? Error detection has to happen in the main script, checking the for $@ as you already do.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Execute function before exit of do() block
by gri6507 (Deacon) on Jan 29, 2014 at 18:11 UTC | |
by shmem (Chancellor) on Jan 29, 2014 at 20:35 UTC |
In Section
Seekers of Perl Wisdom