On Thu, 10 Oct 2002, Chip Salzenberg wrote:
: According to Luke Palmer:
: > for ( grep { $_{smoker} and $_{age} > 18 } @Subscribers ) {
: > .send($Cigarette_Advertisement)
: > }
:
: Hm, would this work too:
:
: for ( grep { .{smoker} and .{age} > 18 } @Subscribers )
:
According to Luke Palmer:
> for ( grep { $_{smoker} and $_{age} > 18 } @Subscribers ) {
> .send($Cigarette_Advertisement)
> }
Hm, would this work too:
for ( grep { .{smoker} and .{age} > 18 } @Subscribers )
{ .send($ciggie_ad) }
? I think .{x} read
On Mon, 22 Jul 2002, david nicol wrote:
>
> The thought process went something like this.
>
> In a world of distributed perl data, we want an
> expression like
>
> foreach (grep { $_->{smoker} and $_->{age} > 18 } @Subscribers){
> $->send($Cigarette_Advertisement)
> }
The thought process went something like this.
In a world of distributed perl data, we want an
expression like
foreach (grep { $_->{smoker} and $_->{age} > 18 } @Subscribers){
$->send($Cigarette_Advertisement)
}
to do the filtering on the machine that holds the s