You probably ran Perl with -w then, because it's warnings that produces that error.
In reply to Re^4: Implicit assignment to $_ by tobyink in thread Implicit assignment to $_ by SimplySimple