in reply to sub routine to sort per time
For example, my understanding is that $a and $b are magic variables used by sort. Did you ever print out what the routine received in those variables?
A better coding style might be to pass those two values as parameters to the subroutine, and to store the result of the tests in a variable that would be passed in a return statement. Then you could display the returned value as well as the parameters, $h_a, $mn_a, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sub routine to sort per time
by steph_bow (Pilgrim) on Nov 26, 2008 at 14:00 UTC | |
by apl (Monsignor) on Nov 26, 2008 at 14:20 UTC | |
by steph_bow (Pilgrim) on Nov 26, 2008 at 14:49 UTC |