Help for this page

Select Code to Download


  1. or download this
    sub this {
      return "this"; # Whatever
    ...
      return "that"; # Being simple here
    }
    # etc
    
  2. or download this
    my %action = (
      this => sub {return "this"},
    ...
    if (exists $action{$in}) {
      $action{in}->();
    }
    
  3. or download this
    sub ret_simple_returner {
      my $arg = shift;
    ...
    }
    
    my %action = map ret_simple_returner($_), qw(this that);