Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#! /perl/bin/perl use strict; my @letters = ("red","red","red","blue","white","yellow","blue","navy" +,"navy","green","white","cars"); foreach my $i (sort(@letters)) { print "$i\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array Question
by Roy Johnson (Monsignor) on Aug 19, 2005 at 14:30 UTC | |
|
Re: Array Question
by Transient (Hermit) on Aug 19, 2005 at 14:30 UTC | |
|
Re: Array Question
by Roger (Parson) on Aug 19, 2005 at 14:33 UTC | |
by ikegami (Patriarch) on Aug 19, 2005 at 14:44 UTC |