I don't see anything there that would set $errstr.  You aren't even using
DBI and DBD::Sybase which would set $DBI::errstr.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Rice, Wayne R (Sybase)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 14:21
Subject: Pattern Matching $errstr out of Sybase


> Does anyone have an idea of how to test for the existence of a string, say
> 'failed', in variable $errstr which is returned after a Sybase call.  See
> below...  I know there is this string in $errstr but cannot get a true...
> Please help
>
>     system("isql -SRICEWR_RS -Usa -P
> -iC:\\winnt\\system32\\adminwhoisdown.sql");
>
>     $_ = $errstr;
>     if (/failed/) {print "failed found in $errstr";}
>     print "\n$errstr\n";


Reply via email to