Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Is there a way to record perl6 repl input and output?

by adhrain (Sexton)
on Jun 15, 2017 at 17:00 UTC ( #1192878=perlquestion: print w/replies, xml ) Need Help??
adhrain has asked for the wisdom of the Perl Monks concerning the following question:

Noble monks, I'm reading Laurent Rosenfeld's "Think Perl 6" and I wish to know if there is a way to record the input and output from perl6 repl.

I tried the script command but, obviously, the result was cluttered by various escape sequences.

Can you help me?

  • Comment on Is there a way to record perl6 repl input and output?

Replies are listed 'Best First'.
Re: Is there a way to record perl6 repl input and output?
by Laurent_R (Canon) on Jun 15, 2017 at 17:50 UTC

      Your book is very good (I'm looking forward for the chapter on Grammars), I received it this morning and I studied the first chapter. The exercises are very well structured and helpful for the learner. Amazing job, Mr. Rosenfeld.

      As for my question, I've already installed Readline that should have similar functionality. So I have a history file of my inputs, but not of outputs from the repl.

      Tomorrow I'm going to try to use emacs M-x ansi-term and then save the buffer to a file.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1192878]
Approved by haukex
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2018-04-20 04:20 GMT
Find Nodes?
    Voting Booth?