From 6c4b97722ea6f8158e43b49bb8133e7385e1c0cc Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jun 2013 14:40:06 -0500 Subject: doc updates --- lib/Reply.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/Reply.pm') diff --git a/lib/Reply.pm b/lib/Reply.pm index 6f7adb2..4826b25 100644 --- a/lib/Reply.pm +++ b/lib/Reply.pm @@ -102,7 +102,7 @@ sub new { =method run Runs the repl. Will continue looping until the C callback returns -undef. +undef or the C callback returns false. =cut @@ -113,6 +113,15 @@ sub run { print "\n"; } +=method run_one($line) + +Runs a single iteration of the repl. If C<$line> is given, it will be used as +the string to evaluate (and the C and C callbacks will not +be called). Returns true if the repl can continue, and false if it was +requested to quit. + +=cut + sub run_one { my $self = shift; my ($line) = @_; -- cgit v1.2.3-54-g00ecf