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

Cwd

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

Functions

abs_path

canonicalize path resolving symlinks

cwd

return current working directory

import

export cwd/getcwd/abs_path/realpath into the caller’s package.

Mirrors Exporter: Cwd has @EXPORT = qw(cwd getcwd fastcwd fastgetcwd). @EXPORT_OK includes abs_path/realpath/fast_abs_path. For simplicity we always export all functions (matches common usage).