Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Hash keys affect sorting

by johngg (Canon)
on Jul 07, 2006 at 16:22 UTC ( #559821=note: print w/replies, xml ) Need Help??


in reply to Hash keys affect sorting

Just a quick observation. Your split /\n/,$output will have the effect of removing the newlines from each line as the split delimiter is not included in the resulting list. Thus the following chomp $line; is superfluous.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^2: Hash keys affect sorting
by 0xbeef (Hermit) on Jul 07, 2006 at 21:12 UTC
    Well spotted - it's an oversight that happened when I simplified the actual code into an example...

    Niel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-06-27 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (88 votes). Check out past polls.

    Notices?