>>>>> "SHC" == Shawn H Corey <shawnhco...@gmail.com> writes:
SHC> On 11-08-22 08:23 AM, Uri Guttman wrote: >> it can only be a string as it comes from stdin. what else do you think >> it could be? SHC> 1. The empty string (not really a string) it is a string that also called the null string. and it is hard to get from reading stdin from a keyboard. typing ^D will get you an eof first. anything else will not get you a null string (at least a newline will be read if in normal line buffered mode or a single char if not). SHC> 2. eof( *STDIN ); you get undef in the scalar. the comment was still off as he seems to imply data that isn't a string. eof isn't data. uri -- Uri Guttman -- uri AT perlhunter DOT com --- http://www.perlhunter.com -- ------------ Perl Developer Recruiting and Placement Services ------------- ----- Perl Code Review, Architecture, Development, Training, Support ------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/