![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Understanding the benefit of Given/When ...by LanX (Saint) |
on Mar 04, 2010 at 14:44 UTC ( #826710=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Honorable Monks, After this discussion -> Re^6: while(){}continue{}; Useful? (Consistent!), I'm trying to understand the extended functionality of the new Given/When compared to the old workaround with For/Next. As far as I understand, Maybe I missed something, please see the example code to understand what I mean: CODE:
Cheers Rolf UPDATE: extended given(Array) and given(Array_ref) Since given accepts arrays and automatically passes the ref without when reacting accordingly, I suppose it's a BUG!
Back to
Seekers of Perl Wisdom
|
|