Re: while and eval

2010-04-21 Thread Shawn H Corey
Uri Guttman wrote: "JWK" == John W Krahn writes: >> Also, how does 'eval' work and when is it useful? What is the difference if >> we put a block inside eval like: eval ( }; JWK> eval interprets a string as Perl code and compiles and runs it. If JWK> you are using a block eval then

Re: while and eval

2010-04-21 Thread Uri Guttman
> "JWK" == John W Krahn writes: >> Also, how does 'eval' work and when is it useful? What is the difference if >> we put a block inside eval like: eval ( }; JWK> eval interprets a string as Perl code and compiles and runs it. If JWK> you are using a block eval then the block must b

Re: while and eval

2010-04-21 Thread John W. Krahn
Arun P Menon wrote: Hello All, Hello, Could you tell me what does the following do? 1 while (<>); That reads through all the files listed on the command line, or if there are no files listed on the command line then it reads through STDIN, and does nothing with the lines read, but does se

while and eval

2010-04-21 Thread Arun P Menon
Hello All, Could you tell me what does the following do? 1 while (<>); Also, how does 'eval' work and when is it useful? What is the difference if we put a block inside eval like: eval ( }; -- Regards, Arun.P.Menon