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

My first bet would be a missing/extra quote somewhere.

... could be an extraneous opening parenthesis.

#!/usr/bin/perl ({ sub add_login{ my ($var) = @_; #... } }

At least, this produces a rather similar error:

$ perl -c <629906.pl syntax error at - line 5, near "sub add_login" Can't use global @_ in "my" at - line 7, near "= @_" - had compilation errors.