On Mon, 28 Jul 2014 20:48:51 -0400
Shawn H Corey <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/