Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 perusing the Monastery: (9)
As of 2014-08-29 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls