in reply to Sorting @lines
So just sort it ;)
my @lines = ('124.43.adsf.ca', '235.23.aer.ca', '100.34.asdm.ca'); # c +reate the unsorted array my @sorted = sort @lines; # create the sorted array for (@sorted) { print "$_\n"; } # display
This displays:
100.34.asdm.ca
124.43.adsf.ca
235.23.aer.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Sorting @lines
by kanabrian (Initiate) on Oct 10, 2002 at 20:19 UTC | |
by Mr. Muskrat (Canon) on Oct 10, 2002 at 21:01 UTC |