note
2teez
<p>
Hi [virtuemart2],<br>
<blockquote><i>
I got a stupid programming question: can switch statment inside switch statement?
I mean switch inside a switch? double switch
</i></blockquote>
One of the paragraph of one of the links you provided namely <a href="http://perldoc.perl.org/5.12.5/Switch.html">Switch.html</a> says and I quote
<blockquote>Note that switch -es <b>can be nested within case (or any other) blocks</b>, and a series of case statements can try different types of matches -- hash membership, pattern match, array intersection, simple equality, etc. -- against the same switch value...</blockquote> <br>
More importantly, you may want to use given/when instead of switch because old Switch used source filtering and had other limitations. Please read the Documentations of the links you provided for this.<br>
Lastly, you could also try this thing out and see what you get anyway.
</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>
1054948
1054948