madaket has asked for the wisdom of the Perl Monks concerning the following question:
Perl Monks,
I have modified an existing perl program (FormMail.pl) and am trying to create a new file and write to it. For example,
does not work ("no such file or directory").my $QB_file = $order_number . "SUF"; open (QBFILE, ">/home/client/www/data_dir/$QB_file") or die "could not + open QB output file: $!";
This is what I have tried:
I would really like to create files with the order number as part of the filename and the FormMail.pl script works well.
Any suggestions?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: opening filehandles, creating files
by merlyn (Sage) on Sep 07, 2003 at 21:10 UTC | |
by bl0rf (Pilgrim) on Sep 07, 2003 at 23:48 UTC | |
|
Re: opening filehandles, creating files
by simonm (Vicar) on Sep 07, 2003 at 20:37 UTC | |
by madaket (Novice) on Sep 07, 2003 at 21:02 UTC | |
by jeffa (Bishop) on Sep 08, 2003 at 05:23 UTC | |
|
Re: opening filehandles, creating files
by MarkM (Curate) on Sep 07, 2003 at 20:33 UTC | |
|
Re: opening filehandles, creating files
by Abigail-II (Bishop) on Sep 07, 2003 at 21:53 UTC | |
by madaket (Novice) on Sep 07, 2003 at 22:06 UTC |