Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: confused (and frustrated) about stdin/out

by Fastolfe (Vicar)
on Dec 03, 2001 at 06:35 UTC ( [id://129024]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: confused (and frustrated) about stdin/out
in thread confused (and frustrated) about stdin/out

You mean besides sort?
# 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;
Consider File::Sort for anything more complex.

Replies are listed 'Best First'.
Re: Re: Re: Re: confused (and frustrated) about stdin/out
by Beatnik (Parson) on Dec 03, 2001 at 20:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://129024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found