Dave Whipp wrote:
gather @bin1, @bin2 -> $bin1, $bin2{
for @words {
$bin1.take if /^^a/;
$bin2.take if /e$$/;
}
}
Juerd point out (private email) that my example doesn't really make any
sense in that it doesn't do anything over and above s/take/push.
However, I think the concept of mul
On Wed, 24 Nov 2004, Dave Whipp wrote:
Juerd point out (private email) that my example doesn't really make any
sense in that it doesn't do anything over and above s/take/push.
However, I think the concept of multiple bins could still be useful. My
What about an adverb? Hope not to say anything utte
> gather @bin1, @bin2 -> $bin1, $bin2{
> for @words {
> $bin1.take if /^^a/;
> $bin2.take if /e$$/;
> }
> }
Juerd point out (private email) that my example doesn't really make any
sense in that it doesn't do anything over and above s/take/push.
However, I think the concept of multiple
I was wondering just how much once can do with gather/take: is it possible
to have multiple bins?
@words = << abc def ade afe ade agc >>;
gather @bin1, @bin2 -> $bin1, $bin2{
for @words {
$bin1.take if /^^a/;
$bin2.take if /e$$/;
}
}
?