neversaint has asked for the wisdom of the Perl Monks concerning the following question:
Update: Correction made, from $OUTFILE_file_name into $OUTFILE_fname. Thanks to Ultra's suggestion. But problem remains.foreach my $file (@files) { my $OUTFILE_fname = $file.".html"; # output file name open ( OUTFILE, '>', result_dir/$OUTFILE_fname ) or croak "$0 : failed this file $OUTFILE_fname : $!\n"; my $result = process($file); print OUTFILE $result; close ( OUTFILE ); # close output file }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Howto direct an output filehandle into directory?
by g0n (Priest) on Dec 06, 2005 at 08:39 UTC | |
|
Re: Howto direct an output filehandle into directory?
by tirwhan (Abbot) on Dec 06, 2005 at 08:57 UTC | |
|
Re: Howto direct an output filehandle into directory?
by Ultra (Hermit) on Dec 06, 2005 at 08:37 UTC | |
|
Re: Howto direct an output filehandle into directory?
by Anonymous Monk on Dec 06, 2005 at 09:16 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |