in reply to Range of File Names and For/While Problem
You may want to try globbing to build your list.
Alternatively, if you want to do processing on each file in the list, File::Find will also work for you and would give you a little more control over which files make it into the list.use File::Glob qw(:globally :nocase); chdir 'd:\log\exported'; my @files = <*.elog>;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Range of File Names and For/While Problem
by svsingh (Priest) on Sep 22, 2003 at 20:41 UTC | |
by demerphq (Chancellor) on Sep 22, 2003 at 21:57 UTC |
In Section
Seekers of Perl Wisdom