Perl Newby has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if there was anyway possible to open a file without specifying the exact name? Possibly something similar to open (INPUT, "c:/mlb_boxscore$_.txt") or die "Can't open file";. I know this doesn't work, I was just wondering if there was a way of doing something similar to this.open (INPUT, "c:/mlb_boxscore$283491230.txt") or die "Can't open file" +; open (boxscore, ">c:/boxscore" . $today . ".html") or die "Can't open +file"; open (HEADER, "c:/header.html") or die "Can't open file"; open (FOOTER, "c:/footer.html") or die "Can't open file";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening Text Files
by mpolo (Chaplain) on May 15, 2001 at 19:57 UTC | |
|
Re: Opening Text Files
by arturo (Vicar) on May 15, 2001 at 19:48 UTC | |
|
Re: Opening Text Files
by dvergin (Monsignor) on May 15, 2001 at 19:52 UTC | |
by Perl Newby (Acolyte) on May 15, 2001 at 20:01 UTC | |
|
Re: Opening Text Files
by traveler (Parson) on May 15, 2001 at 20:13 UTC | |
|
Re: Opening Text Files
by dvergin (Monsignor) on May 16, 2001 at 10:50 UTC |