Then just run legitimate calls to Devel::REPL in a Perl script and address the make of the missing pieces one at a time.
It seems to work. The cpan shell is able to install MOP, for example. Many of the missing pieces blocked by the circular dependencies and recursing make loops are just odds-and-ends.
I came back to Devel::REPL because each alternative that I looked at could not cope with the simple fact that Perl print returns 1 (in some scripting languages, such as REBOL, print returns no value - it just has a side-effect - it prints!) And they each had other quirks (PerlConsole has the virtue of no docs, so you read the code until ah-hah (tip: you must use my for variable assignments to pass through).)
use PerlConsole::Console;
my $cons = PerlConsole::Console->new;
while(true) {
$cons->interpret($cons->getInput);
}
# exit with :quit
No comments:
Post a Comment