develooper Front page | perl.perl5.porters | Postings from April 2007

Re: idea for yet another LNV and caller() return value (was: The Strict trap)

Thread Previous | Thread Next
From:
David Nicol
Date:
April 25, 2007 13:39
Subject:
Re: idea for yet another LNV and caller() return value (was: The Strict trap)
Message ID:
934f64a20704251338w146fd987nc7fbce57d84d0352@mail.gmail.com
On 4/25/07, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote:

> You mean add Hook::Scope to the core ?
> (I haven't tested it with blead, but since it's ridiculously simple, I
> think it should.)

first, extend it so it becomes possible to add things to POST blocks
in enclosing, outer scopes somehow, even accross package and file boundaries,
so it can be used for implying unimport.

And also either remove, or commit to keeping the block around C<use>.

But yes, Hook::Scope is clearly better than shoehorning a POST hook
into a tied lexical's DESTROY method.

Thanks.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About