s_gaurav1091 has asked for the wisdom of the Perl Monks concerning the following question:
my $res = `echo $JAVA_HOME`; print "rs is $res\n"; if($res){ print "exist\n"; } if(!$res){ print "doesn't exist\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: taking an output in a variable
by Corion (Patriarch) on Aug 01, 2006 at 06:21 UTC | |
by QM (Parson) on Aug 01, 2006 at 22:33 UTC | |
|
Re: taking an output in a variable
by mickeyn (Priest) on Aug 01, 2006 at 06:16 UTC | |
|
Re: taking an output in a variable
by ikegami (Patriarch) on Aug 01, 2006 at 06:17 UTC |