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

Re: Perl and your environment

by myocom (Deacon)
on Jul 24, 2001 at 21:40 UTC ( #99421=note: print w/ replies, xml ) Need Help??


in reply to Perl and your environment

& is not the concatenation operator in Perl. What you're looking for is the dot. For this example, there's no need to use it, though. Also, there's no reason to use backticks to get environment variables; they're stored in the %ENV hash.

my $testval = "~$ENV{USER}/foo";


Comment on Re: Perl and your environment
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-29 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls