Sorry, but only comparing words with those that come after it alphabetically doesn't work.
True, but in the solution I posted I sort by length after the alphabetical sort. The alphabetical sort is probably overkill but needed for this particular solution.
chomp (my @words = sort { length($a) <=> length($b) } sort <DATA>);
In reply to Re^4: Words in Words
by Lotus1
in thread Words in Words
by sarchasm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |