windows server 2008 - Why does Perl's File::Copy appear to silently fail? -


I have a Perl script that works on Windows XP. This directory uses the File :: Copy move function to move the tree to the second place on the same drive. Script failed (silently) on Windows 2008 Nothing went away, nothing was removed.

I am using ActiveState Perl 5.10.0 build 1005 and file :: copy which comes with it.

Anyone can detect problems with ActiveState Perl on Windows 2008 due to which this could be?

Example script:

  Use the file: copy; Print "AZ to ZZZ \ n"; Move ("AAA", "ZZW"); Print "completed \ n";  

From itemprop = "text">

to:

returns < / H3>

All functions return 1 to success, 0 upon failure $! If an error was encountered it would have been set.

The example fails silently because nothing is checking $$! Try it on failure:

  move ($ from, $ to) || Failed to move files "dead: $!";  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -