while () { if ($y=......)...... close(IN); }