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