in reply to Function to replace a old file with newer version
Perl, after all, is a glue language, and there's nothing wrong with reusing code.system mv => '-u', "B/ABC.txt", "A/ABC.txt" and die;
Luckely, GNU fileutilities (which includes mv) have been ported to almost any platform Perl runs on (and then some).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Function to replace a old file with newer version
by mr_mischief (Monsignor) on Nov 25, 2008 at 16:54 UTC | |
|
Re^2: Function to replace a old file with newer version
by hiradhu (Acolyte) on Nov 25, 2008 at 11:10 UTC | |
by syphilis (Archbishop) on Nov 25, 2008 at 11:27 UTC | |
by JavaFan (Canon) on Nov 25, 2008 at 13:05 UTC |