I have code like the following
my question is with the ???????
I want to do a few things to clean up and not just 'die'....
How could I 'do more than one thing' within the or ???????
If you see what I mean? (they are fairly trivial, so don't think a subRoutine is neccessary?)
Code:
#$cmd is some UNIX command like the following
$cmd = "cp abc 123";
open (EXP,$cmd)
or ????????????????
while (<EXP>)
{
$output .= $_;
}
close EXP;
my question is with the ???????
I want to do a few things to clean up and not just 'die'....
How could I 'do more than one thing' within the or ???????
If you see what I mean? (they are fairly trivial, so don't think a subRoutine is neccessary?)