Re: remote generators and a macro language proposal

2002-10-10 Thread Larry Wall
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 ) :

Re: remote generators and a macro language proposal

2002-10-10 Thread Chip Salzenberg
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

RE: remote generators

2002-07-22 Thread [EMAIL PROTECTED]
From: david nicol [EMAIL PROTECTED] > foreach (grep { $_->{smoker} and $_->{age} > 18 } @Subscribers){ > $->send($Cigarette_Advertisement) > } > > This would imply an extension of the array tieing > interface, so we can send the grep block to the > data server, and get b

Re: remote generators and a macro language proposal

2002-07-22 Thread Luke Palmer
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) > }