On Monday, May 20, 2002, at 05:48 , Peter Scott wrote: > At 02:52 PM 5/20/02 -0700, drieux wrote: [..] >> open(FH, "$file"); # normally we want to die >> print $_ while(<FH>); # silly but a one liner >> [..] > I missed the earlier articles in the thread so may be off base wrt > original question here, but the above is usually written as: > > print while <>; >
I thought that was a synonym for STDIN? { and for self documenting I would prefer it as print while <STDIN> ;} or do you mean print while <FH> ; rather than the longer bit that I wrote? ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]