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.
Copyright © 2001 O'Reilly & Associates. All rights reserved.