From: Bertram Scharpf Date: 2005-02-14T02:57:53+09:00 Subject: Re: evaluation order Hi, Am Montag, 14. Feb 2005, 01:39:57 +0900 schrieb Robert Klemme: > while ( line = gets ) ... > > Typically, you would need two assignments which is somewhat ugly: > > line = gets > while line > .... > line = gets > end There is while gets line = $_.chomp ... end Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de