in reply to Re^3: I don't understand this grep
in thread I don't understand this grep

Yes it's easy to mess $_ and $_[0]. Nobody see that until an error occured.