- or download this
sub extract {
my $aref=shift;
...
@$aref=@{$aref}[grep !($_ ~~ @_) => 0..$#$aref];
@out;
}
- or download this
#!/usr/bin/perl
...
print Dumper \(@x0, @y, @x);
__END__
- or download this
# -*- Perl -*-
...
1;
__END__
- or download this
use Array::Extract;
my @x = 'a'..'g';
my @y = @x->extract(2,3,-8);