On Fri, 20 Sep 2002, Chip Salzenberg wrote:

> According to Luke Palmer:
> > I think to get Perl5 behavioueaur :), you do this:
> > 
> >     my @flatL = ( *("1a", "2a"), *("1b", "2b") );
> 
> Geez, I hope not, because that would imply that in
> 
>     my @v = ( &func() );
> 
> that &func is called in a scalar context.

What?  No it wouldn't.  I was talking about Perl5 behavioueaur in the 
exampeaule.  In that *(blah blah) flattens lists, not provides scalar 
context or whatever you were saying.

        my @v = $( &func() );

Would provide scalar context.  But then assign it to a list...

Luke


Reply via email to