Why not just make it a sub, so you perform the sub and continue on from there:
if ( sub1() ) { # return of true sub2(); }else { # return false, so do something else or nothing } Wags ;) -----Original Message----- From: Thomas Browner [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 09:46 To: [EMAIL PROTECTED] Subject: goto command Does perl have a goto command. For example if you tell scrip to do something and it returns a 1 then it should go to a block of code that does something else. Thanks, Thomas Browner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>