Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Global symbol "$prepare" requires explicit package name

by tukusejssirs (Beadle)
on Sep 18, 2019 at 19:42 UTC ( [id://11106349]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    DBD::Pg::st execute failed: execute called with an unbound placeholder
    + at ./refresh_dates.pl line nn.
    DBD::Pg::st execute failed: execute called with an unbound placeholder
    + at ./refresh_dates.pl line nn.
    
    # Or:
    Can't locate object method "execute" via package "DBI::db" at ./refres
    +h_dates.pl line nn.
    
  2. or download this
    Global symbol "$prepare" requires explicit package name at ./refresh_d
    +ates.pl line nn.
    Execution of ./refresh_dates.pl aborted due to compilation errors.
    
  3. or download this
    my $sth2 = $dbh->$prepare("update $schema.$table set $date_col = $date
    +_new where $where_col = 1;") or die;
    $sth2->execute();
    
  4. or download this
    #!/bin/perl
    use strict;
    ...
    
    # Close the database
    $dbh->disconnect() or die RED, "ERROR: The database could not be disco
    +nnected.\n       $DBI::errstr\n       Stopped$!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11106349]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found