Consider File::Sort for anything more complex.# With each line in @unsorted @sorted = sort @unsorted; # With all lines in $unsorted, maybe use IO::String my $S = new IO::String \$unsorted; @sorted = sort <$S>; # Or just split on newlines, maybe reversed too: @sorted = reverse sort split $/, $unsorted;
In reply to Re: Re: Re: confused (and frustrated) about stdin/out
by Fastolfe
in thread confused (and frustrated) about stdin/out
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |