in reply to simple condition
@flds[9..13] eq "" won't do what you might think.
@flds[9..13] evaluates to $flds[13] in a scalar context, so it only tests the last field of the five.
Similarly, defined(@flds[9..13]) only tests the defined-ness of $flds[13].
From the code, I would infer that "available" means not the empty string. Based on that, I might try:
yoursnext unless grep($_ eq '', @flds[9..13]) == 5; print...
Edit kudra, 2001-09-26 Replaced [ and ] outside of code tags with entities
|
---|