On Fri, 2009-02-27 at 08:41 -0500, Sarsamkar, Paryushan wrote:
> copy ("C:\\build.xml","D:\\build.xml") or die "Cannot copy : $!";

simplest (?) solution:
copy ("C:\\build.xml","D:\\build.xml") or print "Cannot copy : $!";

You can also have it do more than one thing:
copy ("C:\\build.xml","D:\\build.xml") or ( print "Cannot copy : $!" and
somethingElse() );




-- 
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