Rob Dixon wrote:
>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.
>
Hm. Why doesn't it operate on $_ like /regex/?
- Jan
--
There's no place like ~/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>