Non-matches automatically disappear from the results of a map /(reg)ex/, @listopendir DH, '.' or die "Couldn't open dir: $!" ; my @files = sort { $a cmp $b } map /^([^.]*).*\.pdl$/, readdir DH ; close DH;
Makeshifts last the longest.
In reply to Re^2: Problem with awk
by Aristotle
in thread Problem with awk
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |