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

I'd need to see a little bit more of the code, but it sounds like you have a typo in the lines preceding line 200. My first bet would be a missing/extra quote somewhere.

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: can't use global @_in "my"
by almut (Canon) on Jul 31, 2007 at 21:12 UTC
    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.