Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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 testscript.pl 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 (Sexton) 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985682]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-07-11 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls