in reply to binding operator
Also: I don't think that you can say: my $_. That's a special Perl predefined name ... which I don't recommend that you use. Use my to create a local variable-name as you did in the second case.
In Section
Seekers of Perl Wisdom