Re: [RFC] Stringify a thread

[email protected] (Jerry Hedden) Thu, 5 Oct 2006 13:53:57 -0700 (PDT)
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <[email protected]>
Glenn Linderman wrote:
> Agreed.  Personally, I sympathize with the effort to make
> the stringification more useful, but concur that backwards
> compatibility should be kept for Perls with version < 5.9,
> unless some extra import rule or API call is made to
> convert to the new stringification.

An import flag is the agreed upon concensus:

  use threads 'stringify';

> Regarding debuggers and dumpers, once stringification
> occurs, is there a standard method or technique available
> to obtain a string equivalent to the default
> stringification?

Yes:  overload::StrVal($thr)


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com