# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #113100]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=113100 >


<masak> in a perl6 -n loop, is $*IN.ins supposed to count each
iteration, just like $. does in Perl 5?
<masak> because it doesn't. :(

$ ./perl6 -n -e 'say $*IN.ins'
foo
bar
baz
0
0
0

<moritz> I think .ins only works well with .get, not with .lines
<masak> I think .ins should measure the number of records read,
regardless of method.
* masak submits rakudobug
<moritz> masak: it's not so easy
<moritz> masak: because it depends on the reification model used by for/map
<masak> I was just getting to that.
<masak> seems -n doesn't run stuff until I ^D
<masak> that's... unfortunate.

Reply via email to