Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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
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 taking refuge in the Monastery: (12)
As of 2015-03-05 13:08 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (144 votes), past polls