On Wed, 2002-01-16 at 07:15, Gary Hawkins wrote:
> > However the script continues
> > print @list3;
> > my $var1='META';
> > @lista= grep{$var1} @list3;## not picked up at all
> > print @lista
> >
> > anyone any clues
>
> Suppose I'm a little confused but perhaps you meant:
>
> print @list3;
> @lista= grep(/META/, @list3);
> print @lista;
>
> /g
thanks a lot
couple of points
this is basically a learning/getting rid of rustiness exercise
why is this syntax not mentioned in programming perl - any ideas?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]