wanted to read a unix PATH variable into perl script

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2009
Posts: 3
Reputation: subii P is an unknown quantity at this point 
Solved Threads: 0
subii P subii P is offline Offline
Newbie Poster

wanted to read a unix PATH variable into perl script

 
0
  #1
Jul 30th, 2009
Hello,

I am facing the a probelm, I wanted to read a unix PATH variable into perl script. But its not working.

$path_var=`$PATH`;

Can u help me in doing this.


Thanks in advance,
Subii
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: wanted to read a unix PATH variable into perl script

 
0
  #2
Jul 30th, 2009
As in the response to your hijack post in the other thread
  1. $ENV{PATH}
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 478 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Perl
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC