On Thursday, April 11, 2002, at 08:17 , Scott Taylor wrote:
[..]
> on this line:
> print "$trd Driver ID:</td><td>$columns[19] -- $drvname</td></tr>";
>
> Can anyone point out my mistake?
> It still runs but fills up my error_log
> and I do have the variables initialized before the loop:
> my $trd = "<tr><td bgcolor=white align=right>";
> my $drvname;
> my @columns;
I was wondering why, since I do it myself, we don't start
the simple my defs with an initialization by expected type:
my $drvname ='';
my @columns = ();
my %someHash = ();
and then check before 'fixing' the print statement with
something on the order of:
my $msg = "$trd Driver ID:</td><td>";
if (defined($columns[19])) { # with explanation why 19...
$msg .= "$columns[19] -- $drvname</td></tr>";
} else {
$msg .= " -- $drvname</td></tr>";
}
print $msg;
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]