-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 william wrote: | /var/www/modperl/Dir/Test.pm | package Dir::Test; | | use Cwd; | use Storable; | | sub mygetcwd() | { | open(FILE, 'textfile') || die "$!"; #No such file or directory at | /var/www/modperl//Dir/Test.pm line 8.\n | print <FILE>; | print cwd; #The result is "/var/www/modperl" | } | | 1; You should almost always use full paths to files, think of threads.
- -- - ------------------------------------------------------------------------ Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFINDFwdbiP+9ubjBwRArraAJ4gIWKyxD17Yiqjn71FRF4jOGicPACdFd6F kZWFcNaE/JkhSjcldojVrQY= =XfnH -----END PGP SIGNATURE-----