Sub dothissubroutine { Do something If return this Else return this }
My $result = &dothissubroutine If $result = this }elsif This }else{ This } Paul Kraus ----------------------- PEL Supply Company Network Administrator > -----Original Message----- > From: Thomas Browner [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 29, 2004 12:46 PM > 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> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>