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;

    🦛