Never mind (thanks) -- cockpit error.
--- Jeff Westman <[EMAIL PROTECTED]> wrote: > Date: Wed, 26 Mar 2003 10:35:41 -0800 (PST) > From: Jeff Westman <[EMAIL PROTECTED]> > Subject: Why Am I Getting a Compile Error? > To: beginners <[EMAIL PROTECTED]> > > 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] > __________________________________________________ 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]