develooper Front page | perl.perl5.porters | Postings from March 2012

[perl #111462] refcount warnings from C<use strict> C<our %FIELDS>

Thread Previous | Thread Next
Father Chrysostomos via RT
March 31, 2012 17:06
[perl #111462] refcount warnings from C<use strict> C<our %FIELDS>
Message ID:
On Sat Mar 31 13:23:15 2012, sprout wrote:
> For now, I’m simply going to restore the amount of warnings to the 5.14
> level by moving the new strict hints from %^H into $^H.

With this approach, B::Concise’s tests have to be adjusted, and maybe
B::Concise itself.  How should it render those hints?  Right now, in my
working copy (and in the sprout/111462 branch), it spits out 3758096384,
and changing the tests to look for that just seems icky.  It also seems
like a regression for B::Concise’s output to be much less readable.

So I propose using $$ && ** for the ‘explicit strict’ hints, ($ & *
being used already for regular strict hints).  But I am concerned that
each of those has a completely different meaning in Perl when doubled
up, so the mnemonic may be obscured too much.  So maybe x$ x& and x*.

Does anyone else have suggestions?


Father Chrysostomos

via perlbug:  queue: perl5 status: open

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