in reply to file with a blank in its name
You'll have to sort out what got thrown into @contents if all you really want are just the files (you'll get files, dirs, sym links, devs, the whole gazoo). You could do a few checks before using each @contents. If you want a recursive example, I posted something a while back on this node which might be of interest.my $path = '/home/bbq/tmp'; my @contents = glob($path);
|
|---|