in reply to Re: Scope::Upper localize?
in thread Scope::Upper localize?

One reason I can think of would be if you need to localize variables $A, @B, %C in a lot of different places.

OK, you can repeat:

local($A, @B, %C);

all over the place... but it's good to not repeat yourself.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: Scope::Upper localize?
by Anonymous Monk on Sep 11, 2012 at 09:11 UTC

    Well, that particular usage case is code-smell