- or download this
path( $in )->move( $bak ); #Creates a copy of the original file
- or download this
use POSIX;
my $date = POSIX::strftime( '%Y-%m-%d', localtime );
print "$date\n";
__END__
2014-09-04
- or download this
my $dateNow = POSIX::strftime( '%Y-%m-%d', localtime );
my $backupSuffix = $dateNow . ".bak";
...
my $backupFile = "$file-$backupSuffix";
Replace( $file, $backupFile );
- or download this
$ymdToday ...
... $backupFile = "$file-$ymdToday.bak";
- or download this
## Replace( $inputFilename, $backupFilename );
sub Replace {
...
my( $infile, $bakfile ) = @_;
...
}