> Tk is not a hard dependency at the moment, unless you want an event loop. AE > will not be a hard dependency (with my proposed patch), either. So far as I can tell, ReadLine simply wants to know when a filehandle is readable. So rather than adding yet another hard-coded piece of loop support (and one that as noted in my other message is unusable in some environments), perhaps we could simply add a callback interface - i.e. my $ae_cb = sub { my $cv = AE::cv; AE::io($_[0]->in, 0, sub { $cv->send }); $cv->recv; }; Term::ReadLine->new(..., read_callback => $ae_cb); Then we can document the AnyEvent way as an example, users of other event loops can do the same, and everybody gets what they want without introducing explicit core support for a module that's ... controvertial, at best. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/ Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst commercial support, training and consultancy packages could help your team.Thread Previous | Thread Next