For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2006 > Re: File:: Copy









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: File:: Copy
Jeff Pang

2006-12-20, 9:58 pm


>
>I can't get "use File::Copy" to work. I declare it at the beginning of
>script but when I try to use it latter nothing happens. There are no errors
>and nothing is copied.
>


Did you also add "use strict" and "use warnings" at the begin of the script and still saw nothing?

--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/
D. Bolliger

2006-12-20, 9:58 pm

Jeff Pang am Mittwoch, 20. Dezember 2006 15:09:
> "Dukelow, Don" <don.dukelow@hp.com>
>
> Did you also add "use strict" and "use warnings" at the begin of the script
> and still saw nothing?


....and it would also be a good idea to check if the copy operation succeeded -
see the the SYNOPSIS example in perldoc File::Copy :-)

Dani
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com