git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4316
bd8105ee-0ff8-0310-8827-fb3f25b6796d
my $line = $self->$orig(@args);
if (defined $line) {
- while (needs_continuation($line)) {
+ while ($self->line_needs_continuation($line)) {
my $orig_prompt = $self->prompt;
$self->prompt($self->continuation_prompt);
return $line;
};
-sub needs_continuation
+sub line_needs_continuation
{
+ my $repl = shift;
my $line = shift;
my $document = PPI::Document->new(\$line);
return 0 if !defined($document);