I like the grep substr combo, thanks for your help!
Just one more thing, what if I wanted to return the resulting array:
return sort {substr($a,1) cmp substr($b,1)} grep {substr($_,0,1) eq 'A +'} @array;
Can I do that?
Cheers
Sam
In reply to Re: Re: Sorting a subset
by seaver
in thread Sorting a subset
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |