Help for this page

Select Code to Download


  1. or download this
    $obj->do { stuff(@_) }
    
  2. or download this
    $object->method(sub { 
      my ($arg) = @_;
      # stuff
    });
    
  3. or download this
    @result = map { insert(@your_code_here) } @input;
    
  4. or download this
    sub one_hundred_and_one_times(&) {
      my $block = shift;
      $block->() for (0 .. 100);
    }
    @result = one_hundred_and_one_times { more($stuff) };
    
  5. or download this
    $object->method { # code block };