I think you should check and see
In reply to Re: Scope of RegEx vars like $_ by Anonymous Monk in thread Scope of RegEx vars like $_ by Steve_BZ