[perl #132885] .next-handle seems to change handles but doesn't

2018-02-19 Thread Zoffix Znet via RT
On Mon, 19 Feb 2018 19:48:30 -0800, c...@zoffix.com wrote: > On Mon, 19 Feb 2018 16:15:37 -0800, comdog wrote: > > #!/Users/brian/bin/perl6s/perl6-latest > > > > I'm playing with .next-handle from IO::CatHandle. I'm > > trying to create a situation where I can read just the first five > > lines fro

[perl #132885] .next-handle seems to change handles but doesn't

2018-02-19 Thread Zoffix Znet via RT
On Mon, 19 Feb 2018 19:48:30 -0800, c...@zoffix.com wrote: > On Mon, 19 Feb 2018 16:15:37 -0800, comdog wrote: > > #!/Users/brian/bin/perl6s/perl6-latest > > > > I'm playing with .next-handle from IO::CatHandle. I'm > > trying to create a situation where I can read just the first five > > lines fro

[perl #132885] .next-handle seems to change handles but doesn't

2018-02-19 Thread Zoffix Znet via RT
On Mon, 19 Feb 2018 16:15:37 -0800, comdog wrote: > #!/Users/brian/bin/perl6s/perl6-latest > > I'm playing with .next-handle from IO::CatHandle. I'm > trying to create a situation where I can read just the first five > lines from each command line argument: > > quietly { > my $limit =

[perl #132885] .next-handle seems to change handles but doesn't

2018-02-19 Thread Zoffix Znet via RT
On Mon, 19 Feb 2018 16:15:37 -0800, comdog wrote: > #!/Users/brian/bin/perl6s/perl6-latest > > I'm playing with .next-handle from IO::CatHandle. I'm > trying to create a situation where I can read just the first five > lines from each command line argument: > > quietly { > my $limit =

Re: [perl #132885] AutoReply: .next-handle seems to change handles but doesn't

2018-02-19 Thread brian d foy via RT
I can fix this by closing the old file handle and checking the new one, but that seems like way to much work at the user level. quietly { my $limit = 5; for lines() { state $lines = 1; FIRST { $*ARGFILES.on-switch = { put "NEW FILE"; $lines = 1 } }

Re: [perl #132885] AutoReply: .next-handle seems to change handles but doesn't

2018-02-19 Thread brian d foy
I can fix this by closing the old file handle and checking the new one, but that seems like way to much work at the user level. quietly { my $limit = 5; for lines() { state $lines = 1; FIRST { $*ARGFILES.on-switch = { put "NEW FILE"; $lines = 1 } }

[perl #132885] .next-handle seems to change handles but doesn't

2018-02-19 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #132885] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132885 > #!/Users/brian/bin/perl6s/perl6-latest I'm playing with .next-handle from IO::CatHandle

[perl #126423] [BUG] `if` block with slurpy parameter does not receive argument

2018-02-19 Thread Jan-Olof Hendig via RT
On Fri, 20 May 2016 14:34:25 -0700, sml...@gmail.com wrote: > Happens with an explicitly declared slurpy, too - regardless of its name: > > for 42 -> *@a { say @a }; [42] > if 42 -> *@a { say @a }; [] > > --- > (This is Rakudo version 2016.04-210-gc59e4dc built on MoarVM version 2016.0

[perl #132877] Confusing link to 'zef'

2018-02-19 Thread Zoffix Znet via RT
On Sat, 17 Feb 2018 12:55:45 -0800, lenw wrote: > Rakudo Bug, > > Please see a discussion of "more than one 'zef'" > at . > Bottom line is that the link to 'zef' on your Rakudo Download page > should be changed to > or

[perl #132877] Confusing link to 'zef'

2018-02-19 Thread Zoffix Znet via RT
On Sat, 17 Feb 2018 12:55:45 -0800, lenw wrote: > Rakudo Bug, > > Please see a discussion of "more than one 'zef'" > at . > Bottom line is that the link to 'zef' on your Rakudo Download page > should be changed to > or

[perl #132877] Confusing link to 'zef'

2018-02-19 Thread via RT
# New Ticket Created by Len Weisberg # Please include the string: [perl #132877] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132877 > Rakudo Bug, Please see a discussion of "more than one 'zef'" at