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( $srcf
I believe you want to print $!. Give it a try.
> 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 prin
> 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.
>
> Thanks
>
> Urs
Th
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.
Thanks
Urs
--
To unsubscribe, e-mail: [EMAIL PROTEC