in reply to Re: asterisk problems, and more
in thread asterisk problems, and more
I recommend doing this in your for loop. Instead of:
for (@ARGV) { }
Use:
for ( grep {-f $_} map{ glob($_) } @ARGV ) { }
This will, in a cross-platform way, return a list of all files in the directory. If you need things that aren't files (like directories), you can drop the grep {-f $_} piece.
See glob, grep, and map for more.
|
|---|