Perl language structure: Difference between revisions

Content deleted Content added
m Disambiguating links to Hello World (disambiguation) (link changed to "Hello, World!" program) using DisamAssist.
m Control structures: <u>comment</u>
Line 274:
Up until the 5.10.0 release, there was no [[switch statement]] in Perl 5. From 5.10.0 onward, a multi-way branch statement called <code>given</code>/<code>when</code> is available, which takes the following form:
 
use v5.10; <u># must be present to import the new 5.10 functions</u>
given ( ''expr'' ) { when ( ''cond'' ) { … } default { … } }