Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Clean Up MySQL Code

by astaines (Curate)
on Apr 21, 2003 at 09:42 UTC ( [id://251966]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $sql (@sql) {
           unless ($sth=run_sql($sql)){
    ...
    }
    #Use them like this...
    my $result = $sth->fetchall_arrayref;
    
  2. or download this
    #
    #run_sql
    ...
    
    return $sth;
    } # run_sql
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found