in reply to Re^2: Very curious Problem...
in thread Very curious Problem...

if your sub uses $_ you should  local $_;