Hi Randal, I apologise for not crediting Perl Monks forum here. I won't repeat this henceforth :)
So for all those who are not aware of what is going on. You can have a look at here - http://www.perlmonks.org/?node_id=803894 It also contains a small story about what how I first came in acquaintance with Randal :). Do read it. I know I have posted same question at 2 forums & my only intention behind that is not to just use the piece of code but also to understand it thoroughly & completely. Hence I am trying to gather maximum concepts, ideas, viewpoints and prepare my own valuable notes. I came here bcoz I couldn't get the solution - 'sort { $a->[1] cmp $b->[1] || $a->[0] cmp $b->[0] }' there. However user called 'Marshall' has given a very good understanding of above algorithm at the above forum. Please do read it. And thanks Jim for sharing this - http://en.wikipedia.org/wiki/Schwartzian_transform . I was not knowing that. Once again special thanks to Randal, Perl Monks, and each & every member of the this mailing list. Cheers, Parag On Sat, Oct 31, 2009 at 2:28 AM, Randal L. Schwartz <mer...@stonehenge.com>wrote: > >>>>> "Parag" == Parag Kalra <paragka...@gmail.com> writes: > > Parag> I am trying to emulate Linux 'sort' command through Perl. I got > Parag> following code through Internet to sort the text file: > > "Through the internet"... like somehow the internet magically > created your code? > > You could at least credit your perlmonks exchange, and the code > I produced which you quoted. > > We *are* human beings out here. Not just help-desk employees. :) > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > <mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >