Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: cp -rp src dst

by ajwans (Scribe)
on Mar 05, 2002 at 22:02 UTC ( [id://149524]=note: print w/replies, xml ) Need Help??


in reply to cp -rp src dst

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?
`cp -rp blah1 blah2`;
or
system ("cp -rp blah1 blah2");
or even
qx/cp -rp blah1 blah2/;
Just don't forget to check the process' return value "$?"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found