in reply to Re: How to create the varibles with the file names
in thread How to create the varibles with the file names
I'd use File::Find
#!/usr/bin/perl -w use strict; use File::Find; my $dir = "C:\\data\\"; find(\&Do_Something, $dir); sub Do_Something{ if ( -f && /\.txt$/ ) { print "Doing Something $_ \n"; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to create the varibles with the file names
by duff (Parson) on Nov 15, 2005 at 21:10 UTC | |
Re^3: How to create the varibles with the file names
by mrpeabody (Friar) on Nov 16, 2005 at 16:26 UTC |
In Section
Seekers of Perl Wisdom