in reply to Printing to file
(This continues from where philcrow and runrig left off.)
In
die("Cannot open weekly_${store}_pdf.sas to read from ") unless(open(FINAL, ">weekly_${store}_pdf.sas"));
Fix:
open(my $fh_final, '>', "weekly_${store}_pdf.sas") or die("Unable to open weekly_${store}_pdf.sas for writing: $!\n");
Don't forget to replace the occurences of "FINAL" in the remainder of your code with "$fh_final".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing to file
by Anonymous Monk on Jul 12, 2006 at 17:54 UTC | |
by ikegami (Patriarch) on Jul 12, 2006 at 17:56 UTC | |
by Anonymous Monk on Jul 12, 2006 at 17:59 UTC |