On Tue, Feb 10, 2009 at 04:03, Nikhil Babu <nikhil.b...@gmail.com> wrote:
> Hi,
>
> you can very well try the following
>
>  $x = ENV{'PWD'};
>
> this reads the present working directory from the $PWD environment
> variable.
snip

Relying on environment variables is as bad as calling external
programs.  The Cwd module is part of Core Perl for a reason.

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to