Carl Mäsak wrote:
Aruna (>):
I tested the below code on parrot-1.1.0 and it read all the lines in the
file and tested same code on the latest git update (4th June 2009), it
outputs only the first line.

That's what C<$file.get> does -- it gives you one line per default.
You want C<$file.lines>.

Then why is it that .get works fine for $*IN?

while $*IN.get -> $line {
        say $line
}

Reply via email to