singhabsk has asked for the wisdom of the Perl Monks concerning the following question:
i want to use regular expression instead of file name in INPUT method for file processing as i do not know the file name but its type is .txt
I am running one perl xyz.pl program. In the same folder one 3-4-111.txt file is there. which is called by open(INPUT, "<3-4-111.txt");
but i want to use RE instead of typing 3-4-111.txt each time in program. Is it possible????? please give a idea or code.. thanking you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression for filename
by Anonymous Monk on May 07, 2011 at 10:16 UTC | |
|
Re: regular expression for filename
by Khen1950fx (Canon) on May 07, 2011 at 14:53 UTC |