develooper Front page | perl.beginners | Postings from January 2002

module directory problem

Thread Next
Yeung Siu
January 18, 2002 05:21
module directory problem
Message ID:
Hi all,

I have problem with directory environment. The scripts
are on a NT system using Active Perl v5.6.1. I have
one script at 


and use package at


I imported the to during this

# in script
use lib '../tools';
use TOOLS;

The has the following:

# in
package TOOLS;
use Cwd;

$dir = cwd();  ### get the path of the current
print "$dir\n";


The problem is that the value of $dir is "foo\" and
not "tools\" even "" in the "tools\". This is
a problem since I need to access files with data in
"tools\" from the script. Are there anyway to
solve the module import problem? Thanks =D

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About