in reply to Interactive Emacs/Perl environment

I think what you've done is very cool, however I always created a Perl scratch pad by doing:

C-x b *perl-scratch* RET M-x cperl-mode RET

And, to evaluate it from inside the buffer *perl-scratch*:

C-h M-| perl RET

By the way, can you put some <readmore> tags around your code?


Want to support the EFF and FSF by buying cool stuff? Click here.

Replies are listed 'Best First'.
Re: Re: Interactive Emacs/Perl environment
by educated_foo (Vicar) on Mar 31, 2004 at 17:25 UTC
    Yeah, your way of evaluating probably works fine. On the other hand, I can do things like this:
    use Inline C => 'int square(int x) { return x * x; }'; \C-j square(square(23)); \C-j
    and both statements will be sent to the same Perl. I guess that makes it "more interactive" or something. The real gain is, in theory, in the cross-referencing.

    Thanks for pointing out the "readmore" -- I didn't realize that you needed to close the tag before it took effect.