in reply to
Re^2: how to read STDIN interactively
in thread
how to read STDIN interactively
By the time you reset
$/
the script has already read STDIN all the way to the end of the "file", so the second
<STDIN>
has nothing left to read.
Comment on
Re^3: how to read STDIN interactively
Select
or
Download
Code
In Section
Seekers of Perl Wisdom