Next: , Previous: Interactive Perl, Up: Interactive Perl


3.1 Shortcuts

“Shortcuts” are commands handled specially by the REPL rather than being evaluated as perl code. They either communicate with the REPL function, or provide a convenient interface to variables in the Sepia package. Shortcuts are prefixed by a comma (<,>), and may be abbreviated to the shortest unique prefix.

cd dir
Change perl's current directory to dir.
format type
Set the output format to type, either “dumper” (using Data::Dumper), “dump” (Data::Dump), “yaml” (YAML), or “plain” (stringification). Default: “dumper”.
help
Display a list of shortcuts.
methods name [regexp]
Display a list of functions defined in package name and its ISA-ancestors matching optional pattern regexp.
package name
Set the default evaluation package to name.
quit
Exit the inferior Perl process.
reload
Reload Sepia.pm and recursively invoke the REPL. This command is mostly of interest when working on Sepia itself.
strict [val]
Set evaluation strictness to val, or toggle it if val is not given. Note that turning strictness off and on clears the REPL's lexical environment.
wantarray [val]
Set the evaluation context to val, or toggle between scalar and array context.
who [name [regexp]]
List identifiers in package name (main by default) matching optional pattern regexp.