Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: taking an output in a variable

by mickeyn (Priest)
on Aug 01, 2006 at 06:16 UTC ( #564927=note: print w/replies, xml ) Need Help??


in reply to taking an output in a variable

Hi there,

Your mistake is that perl interpolates $JAVA_HOME before the echo command is executed and I guess $JAVA_HOME in your code isn't defined.

Try $ENV{JAVA_HOME} to get the variable you want.

If you insist (for any reason) to use the echo command's output or need to bypass the perl interpolation, write \$JAVA_HOME.

Enjoy,
Mickey

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564927]
help
Chatterbox?
[ravi45722]: can i get current date using Joda time format
[ravi45722]: Ex: EEE MMM dd HH:mm:ss.SSS yyyy
[ravi45722]: Fri Mar 24 11:54:55.234 2017

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-03-24 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (296 votes). Check out past polls.