On Fri, 2009-02-27 at 08:49 -0500, David Shere wrote: > You can also have it do more than one thing: > copy ("C:\\build.xml","D:\\build.xml") or ( print "Cannot copy : $!" and > somethingElse() );
Or you can have more fun: unless (copy ("C:\\build.xml","D:\\build.xml")) { print "Cannot copy : $!"; somethingElse(); oneMoreThing(); yetAnotherThing(); } although I'm not sure if the "$!" is in scope in this example. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/