Help for this page

Select Code to Download


  1. or download this
    sub dostuff {
      my %arg = @_;
    ...
    }
    
    dostuff( foo => 'FOO', bar => 1 );
    
  2. or download this
    sub_with_callbacks (
      red    => sub { my %arg = @_; .. $arg{foo} .. },
    ...
      blue   => sub { my %arg = @_; .. $arg{foo} .. },
      yellow => sub { my %arg = @_; .. $arg{foo} .. }
    );
    
  3. or download this
    sub_with_callbacks (
      red    => sub { .. $_{foo} .. },
    ...
      blue   => sub { .. $_{foo} .. },
      yellow => sub { .. $_{foo} .. }
    );