Jump to content

Conditional structures: Difference between revisions

(Conditional in Monicelli)
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}}
 
1,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.