Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: question about ordering technical data numbers

by Sixtease (Friar)
on Mar 09, 2007 at 18:39 UTC ( #604028=note: print w/replies, xml ) Need Help??

in reply to question about ordering technical data numbers

Hi Kevin,

I don't understand exactly what you're trying to sort but if you wish to sort the lines in a file, then this command would do the job:

perl -e 'print sort <>' file_to_sort.txt

You'll get the sorted lines on stdout, you may wish to redirect it to a file.

By the way, notice that perl is case-sensitive, which is why OPEN and SORT are giving you errors. The functions are open and sort, lowercase.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://604028]
[1nickt]: Corion I feel that way a lot when I look at the news...
[1nickt]: Brethren, I just noticed in the CPAN ticker Retry, which led me to Attempt, by Mark Fowler. Does anyone have experience with either of these utilities?
[Corion]: No. Back when I toyed with the idea, I found that writing the loop explicitly was usually less code than passing the configuration+ callback to the retrier...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-05-24 12:30 GMT
Find Nodes?
    Voting Booth?