Greeting:

When I execute the following:

<>;
print;

I get the error message "Use of uninitialized value in
print"

but when I exectue:

while (<>) {
  print;
}

I get what I type in echoed back to my screen.

Why does the first snippet of code get an error
message and the second not?
Thanks,
rj

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to