Re: Reading X lines at a time

Peter Makholm <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
Georg Moritz <[email protected]> writes:

> > $_=<>x$n
> 
> or
> @_=<>x$n

Neither of these works for me. 

I had the same thought but the x-operator is eager (of course) and
only evaluate <> once and then copies the result giving you $n copies
of the first line.

-- 
 Peter Makholm     |                The four letter word beginning with L?
 [email protected] |                It's life, love, libc or lisp         
 http://hacking.dk |                    --  Depending on you point of view
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.