PDA

View Full Version : Syntax Errors...


Aradon
07-08-2005, 05:00 PM
I hate theee

Well it claims I have a syntax error on line 911, so here is the code around it:

@output = $telnet->cmd("scm $ip con");
my $ou = $output[2];
@output = split(" ", $ou);
my $connect;
if(output[1] =~ /[0-9]/) #<--907
{
$connect = $output[2];
}
else # <---911
{
$connect = $output[4];
}


Maybe I'm blind..but I see no errors.

and here is the error msg:
syntax error at doc_script line 907, near "output["
syntax error at doc_script line 911, near "else"
doc_script had compilation errors.
at doc_script line 911

joeframbach
07-08-2005, 05:04 PM
$output

Aradon
07-08-2005, 05:11 PM
BY GOD I AM BLIND

That's when you know it may be time to take a break.

Thanks.