Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: cp -rp src dstby ajwans (Scribe) |
on Mar 05, 2002 at 22:02 UTC ( [id://149524]=note: print w/replies, xml ) | Need Help?? |
What Perl does have is multiple mechanisms for running
*nix commands. Often this is the clearest way to do
something. Would you rather write 10+ lines of code,
checking whether a node is a file or a directory then
making that directory or copying that file or would you
prefer the following?
or or even Just don't forget to check the process' return value "$?"
In Section
Seekers of Perl Wisdom
|
|