Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Ask for STDIN but don't pause for it

by kennethk (Abbot)
on Sep 26, 2011 at 21:10 UTC ( #927951=note: print w/replies, xml ) Need Help??


in reply to Ask for STDIN but don't pause for it

You need to do what's called a non-blocking read. You will likely need to deal with some buffering issues on input/output, but Google can give you plenty now that you have a search term. In particular, see Non-blocking reading on STDIN?.
  • Comment on Re: Ask for STDIN but don't pause for it

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927951]
help
Chatterbox?
[1nickt]: marioroy Yes, I am using it with MCE, as is Discipulus I believe. I was trying to work out how to make a cpanfile that would be smart enough to know which deps to require.
[1nickt]: See this code. (I expected to simply eval loading threads as a check, but weirdness happened with Perlbrew so it's a grep of -V ...)
[choroba]: Config might be better than grepping -V
[Corion]: Also see Config::V, which is less of that hackery, or that hackery hidden in a module ;)
[1nickt]: The problem was with Perlbrew
[Corion]: Whoops - Config::Perl::V

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2017-10-18 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (249 votes). Check out past polls.

    Notices?