in reply to Type of arg 1 to shift must be array (not sort)
Something tells me there is a better way. Any suggestions?
do {(my $t,@a) = sort @a};
Update: Use tinita's suggestion below. It's the idiom I had in mind anyway; I guess I just didn't recall it correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Type of arg 1 to shift must be array (not sort)
by tinita (Parson) on Dec 18, 2005 at 15:40 UTC |