P is for Practical | |
PerlMonks |
Re^2: backuping mysqlby Anonymous Monk |
on Jul 03, 2024 at 19:27 UTC ( [id://11160357]=note: print w/replies, xml ) | Need Help?? |
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';
In Section
Seekers of Perl Wisdom
|
|