in reply to Re: Sorting a subset
in thread Sorting a subset
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting a subset
by BrowserUk (Patriarch) on Dec 12, 2003 at 19:55 UTC | |
by Not_a_Number (Prior) on Dec 12, 2003 at 20:04 UTC | |
by BrowserUk (Patriarch) on Dec 12, 2003 at 20:13 UTC | |
|
Re: Re: Re: Sorting a subset
by tcf22 (Priest) on Dec 12, 2003 at 19:47 UTC |