Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The result:print 'readline> '; $_ = readline; print $_; print 'getc> '; $_ = getc; print "$_\n"; print 'readline> '; $_ = readline; print 'WTF';
readline> x x getc> x x readline> WTF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getc vs readline
by dave_the_m (Monsignor) on Nov 30, 2019 at 19:57 UTC |