Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Making my own control flow structure

by Argel (Prior)
on Oct 10, 2006 at 01:06 UTC ( [id://577297] : note . print w/replies, xml ) Need Help??


in reply to Making my own control flow structure

If by functions in the body you mean subroutines then use the if statement to set a flag (e.g. $ok=1) and then test for it in each subroutine.