Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Line Commands In Perl

by AcidHawk (Vicar)
on Nov 20, 2003 at 01:55 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://308467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-03-29 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found