develooper Front page | perl.perl5.porters | Postings from July 2009

Re: Coring Variable::Magic / autodie fights with string eval in Perl5.10.x

Thread Previous | Thread Next
From:
Vincent Pit
Date:
July 5, 2009 01:03
Subject:
Re: Coring Variable::Magic / autodie fights with string eval in Perl5.10.x
Message ID:
4A505E23.8080309@profvince.com

> Thoughts, questions, and discussions very welcome, particularly from
> Vincent, who is the author of Variable::Magic.

There are two alternate solutions :

* Fixing the bug in the core, and making autodie depend on
B::Hooks::EndOfScope conditionnally on perl 5.10.0. This gets my vote.

* The Variable::Magic part of B::Hooks::EndOfScope can be replaced by
tieing %^H to add it a destructor. The only drawback that I know of is
that dieing at compile-time in the scope of the pragma can then generate
some spurious "(in cleanup)" messages.

Vincent.

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