Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]> wrote:

> > When evaluating a test that is a single number, perl compares
> > with line number (ie, $.).
> 
>   which is strange! accordingly to this, the code (for example):
> 
>   while(<>){ print if 10; }
> 
>   should print 10th line only ($. == 10) which is not correct...

The quoted text refers to a test in the context of the flip-
flop operator, not just any old boolean context.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

Reply via email to