Jeff 'japhy' Pinyan wrote: > > 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.
OK Jeff. It's just that I would have expected something like qw/early mid late/ or qw/start middle end/. Line numbers are ordinal, not cardinal. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>