On Wed, 09 Aug 2000, Bart Lateur wrote:
> On Wed, 9 Aug 2000 09:11:55 +0100 (BST), Nick Ing-Simmons wrote:
> 
> >>  @foo = @bar * 12;
> >
> >I like it. 
> 
> >It is pretty obvious what above should do:
> >
> >@foo = ();
> >foreach my $elem (@bar)
> > {
> >  push(@foo,$elem * 12);
> > } 
> 
>       @foo = map { $_ * 12 } @bar;
> 
> 
> I don't see the need for a new notation.


Depends on how often it's used, I guess.  After all, Perl is just new
notation for C.  :-)

It would also potentially add much happiness and confusion with other
operators that work on lists.

For instance,

chomp(@strings);
@strings .= " tag this onto every string";

(I've had many potential perlers ask why that doesn't work.  To them,
it seems intuitive with the rest of the language.)

 -- 
Bryan C. Warnock
([EMAIL PROTECTED])

Reply via email to