in reply to How to safely use $_ in a library function?

Instead of appropriating Perl's work horse for your own purpose, why don't you call your variable $MyLibrarysGlobalCallStackInformation?

Replies are listed 'Best First'.
Re^2: How to safely use $_ in a library function?
by vsespb (Chaplain) on Sep 17, 2013 at 12:31 UTC
    Yep, and still localize it to make code reentrant:
    local $MyLibrarysGlobalCallStackInformation;