Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Perl Commands for Unix/Linux

by rovf (Priest)
on Jan 24, 2013 at 10:31 UTC ( #1015141=note: print w/replies, xml ) Need Help??

in reply to Perl Commands for Unix/Linux

Well, I guess you meant
cp -al
and not
cp - al
- right?

Though the usual suggestion for a Perl replacement of /bin/cp, would be to use to File::Copy, this doesn't apply in your case, since you want to create hard links. Is there a particular reason why you don't just shell out, i.e. system('cp -al DIRX DIRY')?

Ronald Fischer <>

Replies are listed 'Best First'.
Re^2: Perl Commands for Unix/Linux
by sanPerl (Friar) on Jan 25, 2013 at 06:01 UTC
    Dear Ronald
    using system or exec is the default option. However if any Perl module can link and Archive the file while copying, then I will prefer it. It seems that I have to use the default option in this case. Thanks to you for your help.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015141]
[Corion]: Also, a good application to test my API to rate limit things
[choroba]: Dangers of WFH: a mailman rings, brings a parcel for my wife, I need to go outside, take my son with me, sign a paper *and* into the postman's mobile app, get back. Guess what the soup was doing meanwhiles?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-10-18 11:32 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.