Here is a bit of line noise for you to ponder. It will print out all the files/dirs in a given directory and flag them.....
print map{ -d $_ ? "DIR $_\n" : "FILE $_\n" } glob( "/some/dir/*" );
cheers
tachyon
In reply to Re: List and identify directories
by tachyon
in thread List and identify directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |