Front page | perl.perl6.language |
Postings from June 2001
Re: Coupla Questions
Thread Previous
|
Thread Next
From:
Damian Conway
Date:
June 6, 2001 14:43
Subject:
Re: Coupla Questions
Message ID:
200106062143.HAA38213@indy05.csse.monash.edu.au
> > > So, to match $foo's colour against $bar, I'd say
> > >
> > > $bar =~ /$foo.colour/;
> >
> > No, you need the sub call parens as well:
> >
> > $bar =~ /$foo.colour()/;
>
> Hm, I thought Larry said you would need to use $() to interpolate
> a method call. So this would be
>
> $bar =~ /$($foo.colour)/;
That was not my understanding. At least not for (pseudo-)method calls.
But many things are still in flux and I may well have missed a meeting. ;-)
Damian
Thread Previous
|
Thread Next