Hi Randal,

Thanks a bunch..

Today I have attained the "Nirvana" because of you.

My primary interests being Electronics, Physics, Movies, Novels & Linux, I generally don't read books on software engineering. Most of the times I do Googly.

However your's 'Learning Perl' is the only computer related book which I have read in my life. I just finished it few weeks back.

And I am not exaggerating it but I finished it like a Novel. It was so easy and simple to understand.

Its because of your book I have started loving & enjoying Perl. Great Job Randal!!! I do owe many things to you...

I always wanted to meet you and with you replying to my post, my "Karma" has been blessed with gracious bliss....Lucky me...

Coming to your piece of code....It worked like a breeze....All I can say is that - I am speechless

But being frank & forthright, I couldn't understand it much :( . This is the most strangest & strongest Perl code I have ever seen with hardly any use of semicolons.

My head is spinning between sort & map operators. Also I was not knowing 'cmp' operator as I had skip the section 13.4 of your book... :(

I have never used the split operator in the fashion which you have used. I am not sure what '$_->[0], $->1 are doing'. I think they have something to do with references.

If somebody can walk me through the above lines - explaining through one liner comments, I would be grateful...


In reply to Re^2: Emulating 'sort' command through a Perl by paragkalra
in thread Emulating 'sort' command through a Perl by paragkalra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.