in reply to can't use global @_in "my"
---- I Go Back to Sleep, Now.
OGB
My first bet would be a missing/extra quote somewhere.
... could be an extraneous opening parenthesis.
#!/usr/bin/perl ({ sub add_login{ my ($var) = @_; #... } } [download]
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. [download]