Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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.

Comment on Re: I need to export variable as another user
Select or Download Code
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 studying the Monastery: (3)
As of 2015-10-10 02:54 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls