in reply to Re: Simple Switch statement
in thread Simple Switch statement
as:if (defined($value) && exists($switch{$value})) { $switch{$value}->(); } else { $switch{'default'}->(); # I assume $pages was a mistake }
($switch{$value} || $switch{'default'})->();
Liz
|
|---|