Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Interactive Emacs/Perl environment

by Vautrin (Hermit)
on Mar 31, 2004 at 16:48 UTC ( #341340=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://341340]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2022-01-20 11:47 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (56 votes). Check out past polls.