Help for this page

Select Code to Download


  1. or download this
    my %sub_named
        = ( this => \&this,
    ...
    else {
        # error, no sub named $ref
    }
    
  2. or download this
    my @sub_list = qw( this that );
    my %sub_named = map { $_ => eval "\\&$_" } @sub_list;
    # etc.
    
  3. or download this
    use English '-no_match_vars';
    
    ...
            # a dispatch table would have caught this
        }
    }