Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: MySQL backup

by gav^ (Curate)
on May 25, 2002 at 01:55 UTC ( [id://169234]=note: print w/replies, xml ) Need Help??


in reply to MySQL backup

Some points you may want to consider:
  • removing the redundant ( and ) in $query = (qq^SHOW DATABASES^)
  • using bound variables with bind_col and bind_columns
  • replacing grep { $_ =~ ".gz" } with  grep { /\.gz$/ } or being lazing and using <*.gz>
  • using File::Path to remove directories in a portable way
Hope this helps...

gav^

Replies are listed 'Best First'.
Re: Re: MySQL backup
by penguinfuz (Pilgrim) on May 25, 2002 at 10:42 UTC
    Thanks for the input gav^

    ...removing the redundant ( and ) in $query = (qq^SHOW DATABASES^)
    Done, duhr! ;)

    ...replacing grep { $_ =~ ".gz" } with grep { /\.gz$/ } or being lazing and using <*.gz>
    Done. Since I am already defining the ".gz" extension in a variable, I can just pass that information to the "clean_up()" routine, cool.

    ...using bound variables with bind_col and bind_columns
    ...using File::Path to remove directories in a portable way
    ++ for giving me something new to learn about, cheers!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found