Conditional structures: Difference between revisions
→switch
(Conditional in Monicelli) |
PatGarrett (talk | contribs) (→switch) |
||
Line 2,916:
===switch===
At the origin there was no '''switch/case/default''' structure in Perl. In fact there are plenty ways to emulate a switch in Perl. In Perl 5.8 was introduced and experimental '''switch/case/else''' structure. Since Perl 5.10 there is the '''given/when/default''' structure borrowed from Perl 6.
{{works with|Perl|5.10}}
|