Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Modules - behind the scene

  • The functionality of Cwd is implemented in a file called Cwd.pm
  • @INC the list of libraries
  • perl -V
  • perldoc Cwd documentation
  • perldoc -l Cwd location /usr/lib/perl5/5.8.6/i386-linux-thread-multi/Cwd.pm
  • perldoc -m Cwd module content

Examples of modules that export functions. Look at their source code

  • Cwd
  • File::Basename
  • File::Spec
  • File::Spec::Functions