At 10:25 PM 5/20/02 -0700, drieux wrote: >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?
Only in certain cases. It iterates over @ARGV; it's special. Look under "I/O Operators" in perlop. -- Peter Scott Pacific Systems Design Technologies Boston Perl Classes in July: http://www.perldebugged.com/ http://stemsystems.com/class/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]