Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Put your inplace-edit backup files into a subdirby merlyn (Sage) |
on Apr 20, 2003 at 16:01 UTC ( [id://251836]=CUFP: print w/replies, xml ) | Need Help?? |
I just discovered that the inplace-edit value can now include an asterisk to mean "old file". This means you can now do cool tricks like put your "old" versions of the file into a subdirectory with the original name, not a modified name! Here's a one-liner that puts all the old files into a directory named for the unix epoch timestamp (a 10-digit integer increasing by one per second).
Back to
Cool Uses for Perl
|
|