nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm curious to know what the "right" way of doing this is, without relying on the 'system' command. File::Copy doesn't do it. Yeah, it'd be easy enough to roll my own but it just seems strange that I should have to. I'm curious to know where the lazy way might lie.system("cp -u $copy_from $copy_to");
Also, just how "wrong" is it to use the 'system' command. Not portable and no easy way to verify success of the command. Anything else?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Duplicating the 'cp' command's '-u' switch
by Roger (Parson) on Dec 10, 2003 at 03:03 UTC | |
by nysus (Parson) on Dec 10, 2003 at 03:17 UTC | |
|
Re: Duplicating the 'cp' command's '-u' switch
by Abigail-II (Bishop) on Dec 10, 2003 at 10:27 UTC | |
|
Re: Duplicating the 'cp' command's '-u' switch
by Zaxo (Archbishop) on Dec 10, 2003 at 07:12 UTC | |
|
Re: Duplicating the 'cp' command's '-u' switch
by sauoq (Abbot) on Dec 10, 2003 at 19:54 UTC |