- or download this
my @row = map $_->value, @$arr;
- or download this
for my $arr ( @results ) {
...
...
}
return;
}
- or download this
sub foo {
if ( $_[ 0 ] % 3 } {
...
print join( ':', map foo( $_ ), 1..5 ), "\n";
__END__
1:2:4:5
- or download this
print join( ':', map scalar foo( $_ ), 1..5 ), "\n";
__END__
1:2::4:5
- or download this
print join( ' ', grep sub { wantarray ? 0 : 1 }, 1..3 ), "\n";
__END__
1 2 3