Help for this page

Select Code to Download


  1. or download this
    my %lookup = ( 
        foo=>\&fooaction, 
    ...
    else {
        #do the default or exception handling here.
    }
    
  2. or download this
    &{ $lookup{$var} || $default_subref }->( parms );