Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I need to export variable as another user

by Ratazong (Monsignor)
on Aug 06, 2012 at 12:19 UTC ( #985685=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Bareword found where operator expected at testscript.pl line 12, near 
    +"print " PATH"
      (Might be a runaway multi-line "" string starting on line 7)
    
  2. or download this
    my $bash_profile_run = system(". /home/mrdemo1/pig_profile_tmp);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985685]
help
Chatterbox?
[Eily]: It can also be used to force a copy, and remove magic from a variable
[Eily]: there was a post some time ago about variable coming from regex taking more space than the same string defined directly IIRC
[Eily]: and if there's XS, make sure the scalar holds a string representation, that sounds like bad practice though (forcing that on the call side)
[choroba]: You should never pass $1 without double quotes to a sub
[choroba]: or "I should never", at least
[choroba]: that's not the sub's business
[Eily]: choroba but does $name = $1 solve the issue ?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-02-22 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (296 votes). Check out past polls.

    Notices?