Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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

by zentara (Archbishop)
on Sep 30, 2011 at 10:59 UTC ( #928744=note: print w/replies, xml ) Need Help??

in reply to Re^2: Ask for STDIN but don't pause for it
in thread Ask for STDIN but don't pause for it

Works here. Are you hitting Enter to finish the line input? Otherwise use sysread.
$ ./
Fri Sep 30 06:56:53 2011
Fri Sep 30 06:56:58 2011
got: asdfasfsad
Fri Sep 30 06:57:02 2011

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re^3: Ask for STDIN but don't pause for it

Replies are listed 'Best First'.
Re^4: Ask for STDIN but don't pause for it
by Anonymous Monk on Feb 01, 2012 at 10:24 UTC

    same problem sysread doesn't solve. It seems a matter of not blocking can_read. Did you manage to have it working?

      It works on Linux, it doesn't on Windows XP. Do you know why? thank you

        Because cmd.exe is not bash, or csh, or ..... there is a reason abstractions such as Curses/Term::Readline::Gnu were invented

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928744]
[MidLifeXis]: :-)
[MidLifeXis]: Not for a few years yet. Kids in school :-)
[LanX]: NQC
[MidLifeXis]: Is there internet access up there on the lakes? If I moved there I would like to be able to fish :-D
[LanX]: Not Quite Canada
[Discipulus]: have you been fired?!?
[LanX]: remote rules, I've been offered jobs in the US with the promise to stay outside
[MidLifeXis]: Nope. Just looking around, as there are multiple culture and business changes in the area I am in.
[MidLifeXis]: not yet, anyway. Who knows. Just do my best and whatever happens happens.
[LanX]: should be even easier for you

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-03-23 12:40 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (286 votes). Check out past polls.