Rather odd way to do it I would have thought. Is there something inherently wrong with this approach:
my $dir = 'c:/';
opendir DIR, $dir or die "Oops cna't open $dir $!\n";
my @files = grep { /\.pl$/ } readdir DIR;
close DIR;
$_ = $dir.$_ for @files; # add full path
print "Here are all the files:\n";
print "$_\n" for @files;
This finds all the files in my root dir which end in .pl but I could use the regex in the grep to match anything. I
don't see any reason to mess with the symbol table. Just wrap this sort of code in a sub that you can call from wherever....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|