Help for this page

Select Code to Download


  1. or download this
    my %actions = (
       'login'  => sub {
    ...
        },
        ...
    );
    
  2. or download this
    Use of uninitialized value in subroutine entry at ...
    Can't use string ("") as a subroutine ref while "strict refs" in use a
    +t .....
    
  3. or download this
    $query = 'default' unless exists $actions{ $query };