Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: using .profile in perl

by spiritway (Vicar)
on Feb 20, 2006 at 03:25 UTC ( [id://531345]=note: print w/replies, xml ) Need Help??


in reply to using .profile in perl

Are you trying to use the bash .profile file, or are you using a file called './home/apps/profile'? Also, should there be a dot in front of the path? Your title conflicts with the text in your question (the dot, at least, appears to have moved). If this is happening with your path name, then most likely that's the problem. Might it be '/home/apps/.profile' that you're trying to access?

Replies are listed 'Best First'.
Re^2: using .profile in perl
by Rhose (Priest) on Feb 20, 2006 at 18:27 UTC
    I'm pretty sure the leftmost "dot" is intentional as the author seems familiar with Unix shell scripting and probably wants to make use of the "dot command" to execute the specified script in the current shell. Without it, the second script runs in a subshell... even though the script may set environment variables, they all go away when the the script ends and the subshell terminates.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found