in reply to the greedy diamond, or leggo my STDIN

It receives and prints the @msg lines properly, but then how do I get it to get input from the keyboard again after I'm done reading from the diamond operator?

You just get it:

Windows:

C:\temp>headybrew.pl foo bar baz ^Z foo bar bazWhat do you want to do with this message?wtf wtf

*NIX:

wolfgang:~ [21:40:12]$ ./headybrew.pl foo bar baz foo bar bazWhat do you want to do with this message?wtf wtf

You just have to pass an end of file to interrupt the first sequence, which happens to be ^Z in the former environment and ^D in the latter. Or did you mean anything else?

Update: apologies, hadn't noticed the $ ls | sillytest, my fault, but perhaps you may have put that in <code> tags too, for maximum visibility.

Replies are listed 'Best First'.
Re^2: the greedy diamond, or leggo my STDIN
by headybrew (Beadle) on Jul 03, 2007 at 20:09 UTC
    Yeah, but I can't pass and EOF or anything else in. I'm at the mercy of what get's passed in from some other program's output.