Hi there, why is the perl glob command returning a number and not the filenames?
my (@filenames, @files);
for my $file (@files) {
# my $filename = "$directory/*$file";
# print "$filename\n";
@files = <$directory/*$file> or die $!;
print @files . "\n";
push @filenames, @files;
}
$ ips.pl
29
41
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
