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

Re: [RFC] Exposing PL_dirty to perl space

Thread Previous | Thread Next
From:
Tim Bunce
Date:
September 28, 2010 03:46
Subject:
Re: [RFC] Exposing PL_dirty to perl space
Message ID:
20100928104603.GH1766@timac.local
On Mon, Sep 27, 2010 at 10:01:18PM -0700, Jan Dubois wrote:
> 
> So I'm wondering if it would be better to have a more generic
> ${^STATE} that could also indicate other states beyond global
> destruction, e.g. inside BEGIN/INIT/CHECK/END blocks, or running
> during sitecustomize.pl etc.

(Bikeshed: perhaps ${^STAGE} or ${^PHASE} would be a beter name.)

> At the application level you can
> always pass this information yourself, but an interpreter provided
> state would help generic CPAN modules.  However, I've never needed
> these other states so far, so maybe it is overkill.

NYTProf could certainly make use of this.

Tim.

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