Name
switch_clause
Synopsis
switch_clauseindent
,namelen
,itemhash
,item
...
An internal function to generate a suitable switch
clause, called by C_constant
.
item
s are in the hashref format as
given in the description of C_constant
and must all have names of
the same length, given by namelen
.
itemhash
is a reference to a hash,
keyed by name, with values as the hashrefs in the
item
list.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.