Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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^

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
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 contemplating the Monastery: (3)
As of 2016-09-25 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.