On Wed, 2004-08-18 at 13:51, Robert wrote:
[snip]
> my $sel1 = $dbh1->prepare("SELECT * FROM table1");
> my $sel1->execute();
[snip!]
> "my" variable $sel1 masks earlier declaration in same scope at test4.pl line 21.
> Can't call method "execute" on an undefined value at test4.pl line 21.
>  

You've declared the variable $sel1 as scope "my" twice in as many lines.

-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold                                    [EMAIL PROTECTED]
Dog event enthusiast, brewer of Belgian (style) Ales.  Happiness is
having your contented dog at your side and a Belgian Ale in your glass.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to