in reply to Re: HOW Can I pass the array into my subroutine?
in thread HOW Can I pass the array into my subroutine?

Hi Perl Monks!

I posted a message here was because I didn't find any reference in my reading book that mentioned about passing an array as the argument into the subrutine.

And i was writing a perl script, which will do exactly what quick sort does. In this script i need write some subrutine as my functions..there is no extra trouble here...

Anyway, I got all answers I wanted from your great replys.

Thank you!!

  • Comment on Re^2: HOW Can I pass the array into my subroutine?

Replies are listed 'Best First'.
Re^3: HOW Can I pass the array into my subroutine?
by GrandFather (Saint) on Apr 13, 2007 at 22:34 UTC

    note that sort does exactly what quick sort does (for some versions of Perl anyway). Unless you are doing this as a learning exercise Perl's built in sort is generally a much better choice than rolling your own.


    DWIM is Perl's answer to Gödel