Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by educated_foo (3106) on 2007.09.21 23:54 (#57973) Journal
    The only multi-line REPL? Not true! Sepia also does this, by trying to eval the input so far and parsing $@ to guess what went wrong. It's not perfect, but it does a decent job of distinguishing between incomplete input and internal syntax errors.
    • Ah. I've seen Sepia before in search results, but I've never actually checked it out (seeing as how I'm a vim guy).

      Interesting way to solve the same problem. Both have their strengths and weaknesses (PPI is more correct and won't run BEGIN/CHECK blocks, Sepia probably handles more cases, such as s/// and quoted strings)

      • It *should* be possible to integrate Sepia's REPL with vim, or to use it separately with e.g. rlwrap, though I haven't tried it much. And the approach I take is mostly inferior to PPI, other than having far fewer prerequisites.