in reply to quicksort implementation

Did you try?

perl -e 'my $ar = join( ",",sort(1,5,2,3,4) );print "[$ar];\n";'

A lot less code and it's 100% perl!

"Well done is better than well said." - Benjamin Franklin

Replies are listed 'Best First'.
Re^2: quicksort implementation
by ram (Initiate) on Oct 05, 2011 at 15:18 UTC
    hello flexvault I was trying to implement this one as our perl destro doesnt have in build sort thanks

      What? So if you say perl -e 'print qq/$_\n/ for sort qw/c a d b n f/' what do you get?


      Dave

        its a totally skewed distro i dont have sort -ram(haent logged in)
      What kind of Perl do you have?!