@files = grep { ! /^\.\.?$/ } readdir $DIR;
would have been simpler and easier to understand. Also, your choice of $dir and $DIR as variable names could lead to confusion.
Cheers,
JohnGG
In reply to Re: can any bosy help me out!!
by johngg
in thread selcting all files in a given directory except......
by asdfghjkl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |