in reply to How to modify a warning message within a sub?
You could also just use the || command on whatever command you wanted to run and pipe the output out. and put a variable holder for the data line into the output.
Like the following:
open(DGRAB, $chunklookup) || die ("Could not open $chunklookup (DATA TO GRAB) \n");
|
|---|