in reply to Re^2: non aliased default var $_in thread non aliased default var $_
For modern perl (5.10+)
The fix is to add local(): local $_ = 5; ... As of perl 5.9.1, you can now use a lexical version of $_ by declaring it in a file or in a block with "my".
local $_ = 5;
...
As of perl 5.9.1, you can now use a lexical version of $_ by declaring it in a file or in a block with "my".
Cheers Rolf