develooper Front page | perl.perl5.porters | Postings from December 2010

Re: [perl #80628] [PATCH] __SUB__

Thread Previous | Thread Next
December 13, 2010 01:41
Re: [perl #80628] [PATCH] __SUB__
Message ID:
On 13 December 2010 10:29, demerphq <> wrote:
> On 13 December 2010 10:26, demerphq <> wrote:
>> On 12 December 2010 21:26, Father Chrysostomos
> [snip]
>>> The really neat thing, which I realised only after writing it, is that it allows for recursive closures to be written much more simply:
> And this was exactly the reason i recommended a $^SUB "tied" variable
> for this purpose. Again, great idea. ++ to you.
> Perhaps if the back compat police dislike __SUB__ you can make it work
> with $^SUB.

For the record: I originally proposed it be called ${^THIS_SUB} (which
IS reserved - and special by nature iirc) in

Message-ID: <>
Date: Tue, 26 Jun 2007 21:35:26 +0200
From: demerphq <>
To: p5p <>
Subject: What about a ${^THIS_SUB} variable?

In that thread Rafael replied with the module Sub::Current on cpan
where it is exported as  ROUTINE()

It was also discussed in a number or other threads.


perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About