Path: utzoo!utgpu!watserv1!watmath!att!att!bu.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!dog.ee.lbl.gov!pasteur!sprite.Berkeley.EDU!jhh From: jhh@sprite.Berkeley.EDU (John H. Hartman) Newsgroups: comp.lang.perl Subject: subroutine as a parameter Message-ID: <29351@pasteur.Berkeley.EDU> Date: 30 Oct 90 01:35:01 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: jhh@sprite.Berkeley.EDU (John H. Hartman) Organization: U.C. Berkeley Sprite Project Lines: 11 I'm trying to write my own sort routine that does a stable sort. I can't figure out how to pass a subroutine as an argument. Ideally my stable sort routine would take two parameters, the comparison subroutine and the array to be sorted. Thanks. John ----------------------------------------------------------------------- John H. Hartman Graduate Student, UCB Sprite project jhh@sprite.berkeley.edu