Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Don't ask to ask, just ask
 
PerlMonks  

Re: Breaking out of an 'if'

by dmorelli (Scribe)
on Apr 14, 2005 at 15:50 UTC ( [id://447944]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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(); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://447944]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.