if ($#bids){...} does what you mean, but it doesn't really say what you mean. For that, you should say
if (@bids > 1){ ... };
i.e., if @bids contains more bids than one, then ...
for (my $i=1; $i<scalar(@bids); $i++) { ... } could be written ...
for (my $i=1; $i < @bids; $i++) { ... } ... without any change in meaning. @bids is being evaluated in a scalar context. No need to say scalar() explicitly.
Let me oversimplify your problem, and you can build on that. You want to choose the highest bid, excluding your own from consideration (always the first bid), and print only the highest bid.
Snippets of code should be wrapped in
<code> tags not<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).