|Do you know where your variables are?|
How can I create a procedureby ozgurp (Beadle)
|on Jun 10, 2003 at 01:23 UTC||Need Help??|
ozgurp has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, How can I:
1. Make the bodies of my if statements into procedures.
2. Have, at the very beginning of my program, my if statements. Rather than have them execute the procedures, have them build an array of procedure references.
3. In the body of my script, for each row of data, call each procedure in the array.
Instead of having following code:
I could have for example C B A R if statement in the while loop because the user selects only CBAR.