On Oct 27, pApA_rOACh said: >last if m/^\s*model\s*tiny.*/i while (<>);
'last' is an expression, but 'last if ...' is a STATEMENT. That is the problem -- adding a suffix condtional (like if... or while...) to an expression makes it a statement, and you CAN'T add a suffix conditional to a statement, only to an expression. You could write your code as: /^\s*model\s*tiny/i and last while <>; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]