Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Custom Sort An AoA

by Limbic~Region (Chancellor)
on Apr 01, 2014 at 17:54 UTC ( #1080611=note: print w/ replies, xml ) Need Help??


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

SuicideJunkie,
...and limited in length....

You would also need to know that limit and pad everything at every level or else it would still be very complex.

If you need it to be fully generic...

Ah yes, this is along the lines of what I was looking for.

Cheers - L~R


Comment on Re^4: Custom Sort An AoA
Re^5: Custom Sort An AoA
by shmem (Canon) on Apr 02, 2014 at 08:20 UTC
    Ah yes, this is along the lines of what I was looking for.

    Although it feels a bit strange spoon-feeding you a solution... ;)

    Implementing the orcish maneuver as kennethk suggested is left as an excercise for the reader.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      shmem,
      I almost started the thread with I know this is false laziness but.... You are right that this was well within my capabilities. I am not one to make excuses but I have been completely immersed in 6502 Assembly since last Friday afternoon. In fact, this code was to identify an execution path through some assembly. When the answer didn't immediately pop into my head I decided it was best not to think about it. I knew if I switched contexts from Assembly (which I am just learning) to Perl, the effort to regain where I was would be a lot of work.

      Mea culpa

      Cheers - L~R

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-10-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls