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.

<-radiant.matrix->
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law