On Jan 29, Rob Dixon said: >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.
Yes, I know. That's the intent. The thing printed is describing the size of the line number. This wasn't a typo. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>