note
2teez
<p>
<i>~ Printing the variable in each line is only showing the current value..</i> <br><br> That is excatly my point. Since, what to print when '1' is seen is not known, I <tt>think</tt> is better to leave it out.<br>
Your <b>output</b>:
<c>
A (yes)
1 (yes) #?
1 (yes) #?
1 (yes) #?
B (no)
1 (no) #?
1 (no) #?
1 (no) #?
A (yes)
1 (yes) #?
1 (yes) #?
1 (yes) #?
B (no)
1 (no) #?
1 (no) #?
1 (no) #?
</c>
Output with a little modification:
<c>
A (yes)
B (no)
A (yes)
B (no)
</c>
<b>OR</b> one can provide for '1' in hash like so:
<c>
my %decision = ( A => 'yes', B=> 'no', '1'=>'', );
</c>
Then the output shows:
<c>
A (yes)
1 ()
1 ()
1 ()
B (no)
1 ()
1 ()
1 ()
A (yes)
1 ()
1 ()
1 ()
B (no)
1 ()
1 ()
1 ()
</c>
Just saying.....
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-918402">
If you tell me, I'll forget.<br>
If you show me, I'll remember.<br>
if you involve me, I'll understand.<br>
--- Author [unknown to me]
</div></div>
1030963
1030985