in reply to Re^2: Efficient way to verify scalar contents (updated x3)
in thread Efficient way to verify scalar contents
Correction, smart-matching is the one with the broken design. I think given/when's only problem is that they sometimes use smart-matching. But without smart-matching, there's not much point to given/when. For example, the OP would avoid given/when by making nothing but the following changes:
- given ⇒ for
- first when ⇒ if
- other when ⇒ elsif
- default ⇒ else
In Section
Seekers of Perl Wisdom