Urs Wagner wrote:
Hello

Hello,

This does not work.

    `cp $srcfile $dstfile`; || do {
     print "cannot copy $srcfile to $dstfile";
   };

do is also execute if cp working fine. Whz is this so? The next thing I would like to
know how I can print the cp's error message.

use File::Copy;

copy( $srcfile, $dstfile ) or die "cannot copy $srcfile to $dstfile: $!";



John
--
use Perl;
program
fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to