On Mon, Jun 13, 2005 at 12:57:32AM +0200, Chip Salzenberg wrote:
> On Sun, Jun 12, 2005 at 11:26:49PM +0100, Piers Cawley wrote:
> >     sub foo { my $x = 1; return sub { eval $^codestring } }
> >     say foo()("$x");
> 
> I'm pretty sure you meant single-quoted, and you perhaps might maybe
> need a dot there:
> 
>      sub foo { my $x = 1; return sub { eval $^codestring } }
>      say foo().('$x');

Just an aside, it's always okay to omit dot between brackets, as
long as there's no whitespace in between.  So `foo()()` is just fine.

Thanks,
/Autrijus/

Attachment: pgp4zyIBrfklG.pgp
Description: PGP signature

Reply via email to