sub SortDirectory() { my $arrayRef = $_[0]; @$arrayRef = ( sort(grep { -d } @$arrayRef), # sort dirs sort(grep { -f } @$arrayRef)); # sort files }
buckaduck
In reply to Re: Using grep with wildcards
by buckaduck
in thread Using grep with wildcards
by Sherlock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |