in reply to Can't localize lexical variable $var at...

You know. Maybe what you're looking for is this?
$ perl -lwe 'my $var="qq";{my $var=2;print $var;}print $var' 2 qq
____________
Makeshifts last the longest.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.