This doesn't make sense to me:

line 128:  @result = $t->cmd($runSQL);
line 129:  $ordCnt = trim($result[16]);

sub trim($) {
    my $arg = shift;
    chomp($arg);
    $arg =~ s/^\s+//;
    $arg =~ s/\s+$//;
    return $arg;
}    

$ perl -c conv.pl
syntax error at conv.pl line 129, near "result["
conv.pl had compilation errors.

"trim" works fine if I pass it a quoted literal such as '"  25  "'.  Why
won't it work with an element reference?!

-Jeff


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to