App::REPL(3pm)

App::REPL3pm

A container for functions for the iperl program

Usage

This module contains functions that the iperl program automatically imports into any package it enters, for interactive convenience.

Please see the README for general information.

Version

Version 0.01

Export

Functions

x

Print arguments with "Data::Dumper::Dumper"

p

Print arguments with "print"

env

Return a hashref containing the (stored -- not current) lexical environment.

ret

Return a reference to the value of the previous evaluation -- that is, a reference to whatever irepl printed after the last Perl you evaluated. This function will probably evolve to take an argument $n, to return the $n'th previous result.

rdebug ($value)

With no arguments, bump $REPL::DEBUG. With an argument, set $REPL::DEBUG to that. This is for debugging iperl itself; currently at 1 it shows eval'd code, and at 2 it dumps the PPI document corresponding to entered code.

help (commands)

With no arguments, print a brief message. With an argument, either print corresponding help or -- in the case of 'commands', currently the only optional argument -- call perldoc appropriately.

Version control

A subversion repository with anonymous checkout exists at http://OpenSVN.csie.org/app_repl , and you can also browse the repository from that URL with a web browser.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–9
  2. 10
  3. 11
  4. 12–13

Author

Julian Fondren, "<[email protected]>"

Bugs

Does not reliably report errors in eval'd code.

Does not try hard enough to collect a return value from eval'd code.

Makes probably dangerous use of PPI.

Please report any bugs or feature requests to "[email protected]", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-REPL>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libapp-repl-perl 0.012-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.