Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Line Commands In Perl

by AcidHawk (Vicar)
on Nov 20, 2003 at 01:55 UTC ( #308467=note: print w/replies, xml ) Need Help??


in reply to Line Commands In Perl

If you are looking at copying files to the . dir, have a look at File::Copy.

use File::Copy; copy("file1","file2");
If you are trying to run system commands try ``, or system().
`cp file1 file2`;
OR
system(cp file1 file2);

-----
Of all the things I've lost in my life, its my mind I miss the most.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2021-03-07 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (121 votes). Check out past polls.

    Notices?