in reply to everyauction script error bidding errors
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: everyauction script error bidding errors
by simonwilliams (Initiate) on Jun 21, 2005 at 21:57 UTC | |
by mkmcconn (Chaplain) on Jun 21, 2005 at 22:08 UTC |