Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Making my own control flow structure

by Ryszard (Priest)
on Oct 09, 2006 at 12:52 UTC ( #577160=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Making my own control flow structure
in thread Making my own control flow structure

ok, so how about this:

if ($condition) { &doAction; } else { print "doAction not executed due to a failure of $condition\n"; }
if you have a whole bunch of $conditions then you could easily pregenerate the codeblock. cool, dynamic code... !


Comment on Re^3: Making my own control flow structure
Download Code
Re^4: Making my own control flow structure
by Anonymous Monk on Oct 09, 2006 at 13:14 UTC
    I did discuss that in my reply. That solution is not enough, because the print statement is generated by the script writer, and therefore could be diffrent every time. I need a system where the output is generated automatically, so it is repeatable and auditable 100% of the time

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://577160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-10-24 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls