l.frankline has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
The following code is working fine for listing *.xml files.
How could I list for two formats like *.xml and *.htm
Please suggest...thank u
use File::Find::Rule; my @files = File::Find::Rule->file() ->name( '*.xml' ) ->in( "." ); foreach $fname (@files) { print $fname; }
jdporter fixed code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Listing various types of files
by Corion (Patriarch) on Nov 16, 2005 at 15:27 UTC | |
|
Re: Listing various types of files
by Roy Johnson (Monsignor) on Nov 16, 2005 at 16:12 UTC | |
|
Re: Listing various types of files
by ikegami (Patriarch) on Nov 16, 2005 at 16:23 UTC | |
|
Re: Listing various types of files
by duff (Parson) on Nov 16, 2005 at 15:37 UTC |