FAQ

* Chad Granum [2016-01-12 04:20]:
That said, it just occured to me that this can possibly be
accomplished by having a context store $! And $@ when it is obtained,
then restore them when it is released, which would avoid needing to
use local everywhere, and still preserve them for all tools
automatically...
I actually like the magic Kent is wary about in this instance, as it
makes it easier for test functions to get this right without each of
them having to carry extra boilerplate. But this also means that a test
function which explicitly *wants* to change these variables has to fight
the framework for it. So maybe there ought to be a mechanism to request
that they not be restored on context release.

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 21 of 28 | next ›
Discussion Overview
groupcpan-workers @
categoriesperl
postedJan 12, '16 at 12:53a
activeJan 18, '16 at 10:52p
posts28
users8
websitecpan.org

People

Translate

site design / logo © 2018 Grokbase