Jeff 'Japhy' Pinyan wrote: > > while (<FILE>) { > print "small " if 1 .. 10; > print "medium " if 6 .. 15; > print "big " if 11 .. 20; > print "\n"; > }
Careful here Jeff. '..' compares its operands with $. (current record number) in a scalar context. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>