in reply to Why does 'print shift sort @array' not work?
Another option is to put the results of sort into an anonymous array and then dereference:
print shift @{[sort @array]}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why does 'print shift sort @array' not work?
by ikegami (Patriarch) on Feb 26, 2009 at 19:28 UTC | |
by hbm (Hermit) on Feb 26, 2009 at 20:19 UTC | |
by ikegami (Patriarch) on Feb 26, 2009 at 20:28 UTC | |
by Fletch (Bishop) on Feb 26, 2009 at 20:30 UTC | |
by ikegami (Patriarch) on Feb 26, 2009 at 20:32 UTC | |
by Fletch (Bishop) on Feb 26, 2009 at 20:40 UTC | |
by hbm (Hermit) on Feb 26, 2009 at 21:07 UTC | |
by JavaFan (Canon) on Feb 26, 2009 at 21:36 UTC | |
|