Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Custom Sort An AoA

by SuicideJunkie (Vicar)
on Apr 01, 2014 at 17:31 UTC ( #1080607=note: print w/replies, xml ) Need Help??


in reply to Re: Custom Sort An AoA
in thread Custom Sort An AoA

Sounds like that could fail on cases where there is a space in the data.

But as long as you can find a separator value that does not occur, you should be good.

Replies are listed 'Best First'.
Re^3: Custom Sort An AoA
by kennethk (Abbot) on Apr 02, 2014 at 18:13 UTC
    True, but I think that most people would feel uncomfortable with join chr(1), ... See Re^3: Custom Sort An AoA for a more rigorous solution, the complexity of which makes my first suggestion feel very inviting.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080607]
help
Chatterbox?
[msh210]: *finally* tracked down the source of nonsensical results: I had sum0 (@ary / $foo) instead of (sum0 @ary) / $foo

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-01-17 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.