in reply to given and for

Hi,

given and when are analogous to switch and case in other languages. Please, see subheading " Switch Statements " under documentation perlsyn for more details.

Replies are listed 'Best First'.
Re^2: given and for
by GlitchMr (Sexton) on Aug 21, 2012 at 10:17 UTC

    I know that they are analogous, but that wasn't what I asked. I asked why Perl has given when for can also be used for this.