Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: backuping mysql

by Anonymous Monk
on Jul 03, 2024 at 19:27 UTC ( [id://11160357]=note: print w/replies, xml ) Need Help??


in reply to Re: backuping mysql
in thread backuping mysql

I was going to concatenate the filename but didn't like the number of dots:
my $file = 'db.backup.' . time . '.sql';
So I used join but forgot to clean up the dots:
my $file = join '', 'db.backup.', time, '.sql';
Still works the same but should be like this:
my $file = join '.', 'db.backup', time, 'sql';

Replies are listed 'Best First'.
Re^3: backuping mysql
by hippo (Archbishop) on Jul 03, 2024 at 20:57 UTC

    or even:

    my $file = sprintf 'db.backup.%i.sql', time;

    🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-09-07 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.