in reply to Limited Number of User Input
EDIT: found out how to do this, using
while (my $text = <STDIN>) { chomp($text); print "You entered '$text'\n"; last if ($text eq ''); }
but with a counter instead of "last"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Limited Number of User Input
by rjt (Curate) on Mar 22, 2013 at 00:22 UTC |
In Section
Seekers of Perl Wisdom