Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: MySQL backup

by gav^ (Curate)
on May 25, 2002 at 01:55 UTC ( #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^


Comment on Re: MySQL backup
Select or Download Code
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
Node Status?
node history
Node Type: note [id://169234]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-07-04 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls