The above code makes no sense to me. In the first line above, the $i = 1 at the end of the for loop makes the "loop" pointless because it processes at most one element, namely the last item in the array. In the last line above, sorting a scalar is similarly pointless because you are sorting just one item.for (my $i = $#bids; $i > 1; $i = 1) { my ($alias, $email, $bid, $time, $add1, $add2, $add3) = &read_b +id($bids[$i]); $time = sort ({ int $a <=> int $b } $time);
I am assuming you are very new to Perl. I suggest you start by reading the book Learning Perl and having a look around learn.perl.org.
Oh, and always start your scripts with:
use strict;
In reply to Re: everyauction script error bidding errors
by eyepopslikeamosquito
in thread everyauction script error bidding errors
by simonwilliams
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |