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:
Artur Bergman
Date:
April 25, 2007 14:14
Subject:
Re: idea for yet another LNV and caller() return value (was: The Strict trap)
Message ID:
7849B7FC-FD4D-4D9A-AC77-67C6194ECDE9@crucially.net

On Apr 25, 2007, at 2:11 PM, David Nicol wrote:

> On 4/25/07, Artur Bergman <sky@crucially.net> wrote:
>
>> What are we trying to accomplish?
>
> do something within an import subroutine that sets a POST hook in
> the caller's scope. (to imply the unimport subroutine, for instance.)
>
> This would provide dynamic C<local> semantics for pragmata,
> as an alternative to the C<my> semantics provided by %^H.
>
>
> -- 
> practical solutions to systemic problems

there is a problem

BEGIN {
  import()
}

is two scopes

artur


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