On Mon, 28 Jul 2014 20:48:51 -0400
Shawn H Corey <shawnhco...@gmail.com> wrote:

> > copy $htmfile, $copy;  
> 
> # always check for error
> copy $htmfile, $copy or die "could not copy $htmlfile\n";

And even more helpfully, include in the message $! - which will contain
the error message to show you what actually went wrong:

copy $htmlfile, $copy
    or die "Failed to copy $htmlfile to $copy - $!";






-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to