in reply to Re: GOLF: Input sort list of integers, Output as [356853]
in thread GOLF: Input sort list of integers, Output as [356853]
Look at Problems with looping through an array and you'll see that when presented with a string of 1's you should separate them by returns, and there should be a blank line between groups of numbers. Fixing this output issue adds 3 more characters:
print$/x!$;{$_}++,++$;,") $_-",$;{$_},$/for@_
Obviously I need to learn to read better...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GOLF: Input sort list of integers, Output as [356853]
by Abigail-II (Bishop) on May 27, 2004 at 15:48 UTC |