From: Zach Dennis Date: 2004-02-01T11:29:00+09:00 Subject: Question on the flip/flop op With the following code where 'f' is an file handle: f.each_line{ |line| header = 1 .. $.=~$^ ? true : false body = $^ .. f.eof ? true : false } Say body becomes true after the first \n. What is stopping header from becoming true again on the next \n? Since it will be between 1 and the $^. Is the flip flop op somehow storing that $^ was already reached and not to test the condition again? Thanks, Zach --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004