On Tue, Feb 10, 2009 at 04:03, Nikhil Babu <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
