Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sort and related stuff

by leons (Pilgrim)
on Feb 23, 2001 at 15:25 UTC ( #60463=note: print w/replies, xml ) Need Help??


in reply to Sort and related stuff

I just added:

my @dummy=sort byVersion ();

To the top of my first example and that actually 'solves'
the problem. No error message appeared and the program actually
returns:

./ssrmpilot@IBP-test$ ./sort.s
1.1.1.1 is less than 1.1.1.2

I guess this means that when the compiler finds a certain
subroutine in combination with sort somewhere in the
code, it decides that it must be a 'sort'-function and will
therefore be treated different than a regular subroutine ...

.... I'm still puzzled .... ;-)