New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$*IN.ins doesn't count the number of iterations so far in a -n loop in Rakudo #2777
Comments
From @masak<masak> in a perl6 -n loop, is $*IN.ins supposed to count each $ ./perl6 -n -e 'say $*IN.ins' <moritz> I think .ins only works well with .get, not with .lines |
From @masak<masak> moritz: is there something about `eager` that's still NYI that |
@masak - Status changed from 'new' to 'open' |
From @perlpilotThese currently work as expected: ➤ wc -l test.dat ➤ perl6 -n -e 'say $*ARGFILES.ins' test.dat ➤ cat test.dat | perl6 -n -e 'say $*ARGFILES.ins' ➤ cat test.dat | perl6 -n -e 'say $*ARGFILES.ins' - ➤ perl6 -n -e 'say $*IN.ins' test.dat For the last one we're not reading from $*IN, so we're always at line "0" However, these do not work as expected: ➤ perl6 -n -e 'say $*IN.ins' < test.dat ➤ cat test.dat | perl6 -n -e 'say $*IN.ins' ➤ cat test.dat | perl6 -n -e 'say $*IN.ins' - In each case we're reading from stdin which should be On Sat May 26 09:04:34 2012, masak wrote:
-- -Scott (PerlJam/perlpilot) |
From @perlpilotWith commit rakudo/rakudo@6f292f5 Now works as expected: ➤ ./perl6 -n -e 'say $*IN.ins' < test.dat ➤ cat test.dat | ./perl6 -n -e 'say $*IN.ins' ➤ cat test.dat | ./perl6 -n -e 'say $*IN.ins' - Still needs tests. On Fri Jul 24 08:23:12 2015, duff wrote:
-- -Scott (PerlJam/perlpilot) |
From @perlpilotTests added in Raku/roast@e8821d1 On Fri Jul 24 09:31:29 2015, duff wrote:
-- -Scott (PerlJam/perlpilot) |
@perlpilot - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#113100 (status was 'resolved')
Searchable as RT113100$
The text was updated successfully, but these errors were encountered: