Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 (Beadle) 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2016-10-25 03:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.