in reply to No interactivity (prompt) after reading from pipe
Try putting this in before your <STDIN>:
eof(STDIN) and print "This ain't gonna work\n";
Question is... how do you reset the EOF on STDIN?
larryk perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: No interactivity (prompt) after reading from pipe
by svenXY (Deacon) on Nov 18, 2005 at 14:41 UTC | |
by ptum (Priest) on Nov 18, 2005 at 14:48 UTC |