Jeff 'japhy' Pinyan wrote on 23.04.2004:

>    # read 6 lines from IN and put them in @record
>    my @record = map scalar(<IN>), 1 .. 6;

How does this work?

In the map function you gave, the first argument is scalar, which takes only one 
argument and returns a line from INPUT in scalar context. But how are the numbers from 
the range operator applied to the expression scalar(<IN>)?

Thanks,

Jan
-- 
These are my principles and if you don't like them... well, I have others. - Groucho 
Marx

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to