Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: RFC: Term::ReadKey Availability and requiring it in Term::ReadLine::Perl5

by Tanktalus (Canon)
on Nov 02, 2013 at 15:08 UTC ( #1060942=note: print w/ replies, xml ) Need Help??


in reply to RFC: Term::ReadKey Availability and requiring it in Term::ReadLine::Perl5

I don't see any issue with requiring Term::ReaddKey -- simply document that requirement and that if the user doesn't want to install it, they can go with Term::ReadLine::Perl.

Separate question - have you tested your code against Term::ReadLine::Event? :)


Comment on Re: RFC: Term::ReadKey Availability and requiring it in Term::ReadLine::Perl5
Term::ReadLine::Perl5 and Term::ReadLine::Event (Was Re^2: RFC: Term::ReadKey Availability and requiring it in Term::ReadLine::Perl5)
by rockyb (Beadle) on Dec 03, 2013 at 22:07 UTC

    Sorry for the late reply. A quick scan at the link doesn't make it obvious for how one would test against Term::ReadLine::Event.

    If you are someone else works up some test code, I'll look into adding those tests to the Term::ReadLine::Perl5 distribution. You can even use Test::More since existing tests now use that.

    Failing that, some sort of concrete code sketches of what you specifically want to test would be helpful. It's all in the details!

    Thanks in advance.

      The basic question is: are you event-friendly? There are examples in TRLE that show how to use TRL with those event handlers. You can use these examples and modify them to use your TRL class (export PERL_RL=Perl5 is probably sufficient) and see that they continue to work. The select.pl example doesn't require any other event modules, so might be the easiest to start with, but if you have any of the other event models installed, you can try them as well. The events work somewhat with Term::ReadLine, and work better with ::Perl and ::Gnu, I'm just curious as to whether they work with ::Perl5 :)

        The basic question is: are you event-friendly?
        Probably as friendly as Term::ReadLine::Perl, since this a fork of that code. But one can't be certain until someone tries it.

        You brought this up which suggests you have interest in the answer. If it's not worth your while (or someone else's) to dig deeper, then I'm perfectly happy to leave things the way they are and go with the arm-chair answer given at the beginning of the last paragraph.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls