in reply to can't use global @_in "my"

I'd look to what occurs before sub add_login{. Once perl finds a syntax error, all bets are off. So I would not take any notice of the "@_" error until you fix your syntax error.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.