Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: File::Copy or system

by CountZero (Bishop)
on Sep 28, 2011 at 13:38 UTC ( #928322=note: print w/ replies, xml ) Need Help??


in reply to File::Copy or system

If you are fond of the cp command and still want to avail yourself of the nice extras provided by File::Copy, just do use File::Copy qw/cp/; at the start of your program and the cp function is imported into your namespace.

With Perl, you can can have your cake and eat it!

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James


Comment on Re: File::Copy or system
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-12-21 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls