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