Conditional structures: Difference between revisions
Content added Content deleted
(Conditional in Monicelli) |
PatGarrett (talk | contribs) (→switch) |
||
Line 2,916: | Line 2,916: | ||
===switch=== |
===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}} |
{{works with|Perl|5.10}} |
||