in reply to Breaking out of an 'if'

If you can make some_stuff() return something true or false, you could use &some_stuff() && &some_more_stuff() like this:

#! /usr/bin/perl -w use strict; # Just to test, pass in 1 or 0 from the shell sub some_stuff { $ARGV[0]; } sub some_more_stuff { print "Got to some_more_stuff()\n"; } if(1) { &some_stuff() && &some_more_stuff(); }