Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: I need to export variable as another user

by Corion (Pope)
on Aug 06, 2012 at 12:13 UTC ( #985682=note: print w/replies, xml ) Need Help??

in reply to I need to export variable as another user

Bareword found where operator expected at line 12

Your posted script does not have 12 lines. Please post the reduced script and the error messages that it produces instead of making things up.

Also, you have already been told about perlvar and %ENV. Also see Get default login environment.

Replies are listed 'Best First'.
Re^2: I need to export variable as another user
by rahulruns (Scribe) on Aug 06, 2012 at 12:19 UTC

    I have updated the script but other lines are hashed out

      Perl tells you line numbers in its error messages. Consider reading these error messages and looking at the lines in your original script that correspond to these line numbers.

      As you keep your original script hidden from us, and don't tell us what line numbers Perl tells you for the script you posted, we cannot help you.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985682]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-05-27 02:11 GMT
Find Nodes?
    Voting Booth?