in reply to the answer to an 'uninitialized value, now how do I implement it?

Try this:
my $resultsize = @$searchresult; print "Located Part Number: @$searchresult[0..$resultsize]\n" if ( $resultsize );
(I was puzzled at what appeared to be an incomplete ternary operator in your code -- there was an expression, a question mark, another expression, then nothing else, when there should have been a colon and a third expression.)
  • Comment on Re: the answer to an 'uninitialized value, now how do I implement it?
  • Download Code

Replies are listed 'Best First'.
Re: Re: the answer to an 'uninitialized value, now how do I implement it?
by Bismark (Scribe) on Jan 18, 2003 at 02:44 UTC
    There is a colon and third expression, I left it out here since it is not involved with the error. I tried your suggestion and still get the uninitialized value error. After the error message it does print all the fields. So it is closer than I have gotten so far.