Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by adhrain (Acolyte)
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 (Abbot) 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-09-20 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (236 votes). Check out past polls.

    Notices?