File::Copy warning 
Author Message
 File::Copy warning

Hi,

when  I do

#!/usr/bin/perl -w
use diagnostics;
use File::Copy;

copy("Foo","/tmp/Foo");

i get this warning

Use of uninitialized value at /usr/freeware/lib/perl5/File/Copy.pm line
80 (#1)
    (W) An undefined value was used as if it were already defined.  It
was
    interpreted as a "" or a 0, but maybe it was a mistake.  To suppress
this
    warning assign an initial value to your variables.

whats wrong? and how do Is fix it ?

--

                   \\\|///
                 \\  ~ ~  //

================oOOo=(_)=oOOo================

Eyal Bar Ilan       BVR Technologies (Israel)

=========================Oooo================
                 oooO   (   )
                (   )    ) /
                 \ (    (_/
                  \_)



Tue, 19 Dec 2000 03:00:00 GMT  
 File::Copy warning

What version of Perl are you using? My 5.004_04 doesn't do this.

Quote:

> Hi,

> when  I do

> #!/usr/bin/perl -w
> use diagnostics;
> use File::Copy;

> copy("Foo","/tmp/Foo");

> i get this warning

> Use of uninitialized value at /usr/freeware/lib/perl5/File/Copy.pm line
> 80 (#1)

--

Internet Development                                http://www.dannet.dk
Dan Net A/S                                       phone: +45 45 82 16 00
Blokken 9 - DK-3460 Birkeroed - Denmark             fax: +45 45 82 16 44


Tue, 19 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. File::Copy warning

2. Warning using copy from File::Copy

3. warning from File::Copy

4. Using File::Copy and Sockets to copy public files from http addresses

5. File::Copy, copying files problem.

6. Bug in Copy.pm (produces warning message)

7. Semantics of File::Copy::copy(,)

8. unwanted UNIX file permissions after using File::Copy::syscopy

9. File::Copy WIn32 bad file descriptor

10. How do copy files based on pattern on original file namnes

11. File::Copy bug - copying over same file zeroes file?

12. warnings::register, no warnings, and inheritance

 

 
Powered by phpBB® Forum Software