start page | rating of books | rating of authors | reviews | copyrights

Book HomeJava and XSLTSearch this book

8.49. Cwd

The Cwd module provides three functions that get the pathname of the current working directory. Using these functions instead of the pwd command will make your code more portable, because not all systems have pwd.

cwd

cwd

Gets the current working directory. This is the safest way to get it.

fastcwd

fastcwd

A faster way to get the directory, but somewhat more dangerous because of the way it works internally.

getcwd

getcwd

Does the same thing as cwd by reimplementing the C library functions getcwd(3) or getwd(3) in Perl.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.