in reply to Re: Writing to a different file name
in thread Writing to a different file name
It will get messed up if $file starts with & or >, though. To prevent this, just switching to 3-arg open is sufficient: open FOO, ">", $file or bailout("error opening output file: $!")
|
|---|