http://qs1969.pair.com?node_id=1015141


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 <ynnor@mm.st>

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.