NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Excellent name! (Score:1)
Would it be possible to show the code in which this is used? I'm having trouble thinking of a situation in which local woudn't cut it (although there obviously is if several different people have thought of this technique).
I really like the name "scripting token". My first thought was to call the scalar a "canary", because it exists only to trigger other behavior when it is destroyed, vaguely like a canary in a mineshaft; but your name is much more descriptive.
Reply to This
Scoping token in action (Score:1)
I can give a little, though I think in most cases I didn't use it in as novel ways as I conceived that I would. (I'll have to redact a bit, but that's okay.) But I have a mean over-engineering streak...
The method in the journal entry exists in my project Testing superclass (which isa Test::Class.) In addition, there is: