Jan Eden <[EMAIL PROTECTED]> wrote: : : 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>)?
They're not applied. The range acts as a counter. HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>