This seems to work now:
$ echo "This is cool" | ./perl6-m -p -e 's/cool/nice/'
This is nice
$ echo "This is cool" | ./perl6-p -p -e 's/cool/nice/'
This is nice
$ echo "This is cool" | ./perl6-j -p -e 's/cool/nice/'
This is nice
Since there is also a similiar test in S19-command-line-options/03-
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 928223546f5bb41765920cce2b8d5727b510097b
https://github.com/perl6/specs/commit/928223546f5bb41765920cce2b8d5727b510097b
Author: TimToady
Date: 2014-10-19 (Sun, 19 Oct 2014)
Changed paths:
M S06-routi
# New Ticket Created by Alexander Hartmaier
# Please include the string: [perl #123015]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=123015 >
As discussed on IRC mainly with moritz I'd need a way to get the number of
bytes,
I tried to golf this down and got the following on Parrot (it runs on Moar and
JVM):
$ perl6-p -e 'Proxy.new( FETCH => sub ($var) { 42 } );'
Segmentation fault
The next three commands are okay:
$ perl6-p -e 'Proxy.new( FETCH => sub ($) { 42 } ); say "alive"'
alive
$ perl6-p -e 'Proxy.new( FETCH
AFAIU this was fixed with the following commit, which explicitly sets the
timezone to America/New_York:
https://github.com/perl6/roast/commit/04d38c8a3cc04519dfd213c6281186cbd67cce51
If that was not what you meant, please reopen the ticket.
On Wed Jul 30 10:59:43 2014, duff wrote:
> On Fri May 30 08:20:25 2014, masak wrote:
> > Woodi, a Date is like today, or tommorroy, or June 4,
> > 1977
> > A DateTime is like Friday May 30, 2014 11:11 AM and
> > 3.141592 seconds.
> > Woodi: though not strictly necessary, Date is there for two
>
This also works now on Moar:
$ perl6-m -e 'my @a; @a.push: $("one,two,three".split(",")); say @a;'
one two three
There was a test added to S02-types/lazy-lists.t with the following commit:
https://github.com/perl6/roast/commit/6538a38cfe5492fc65412440e56a46c3163fb6f9
I just fudged the test for
On Thu Oct 16 02:51:19 2014, barto...@gmx.de wrote:
> But before adding tests I wonder whether the where clause has any
> effect. Shouldn't the following complain that $.color is restricted to
> values 1 and 2?
>
> $ perl6 -e 'class A { has Int $.color where 1|2 }; my $a = A.new(
> color => 3 ); s
FWIW I don't get segfaults for Moar anymore.
For parrot it's flapping: sometimes I get a segfault, sometimes I don't. The
command segfaults more often than it does not:
$ for i in $(seq 1 100); do perl6-p -e 'multi a(:$a!) { "named" }; multi a($a)
{ "positional" }; my $a = "a"; a(a => 1); a("a"
This works no (again) and the test in S32-str/indent.t was unfudged.
$ perl6 -e '"asdf".indent('0x10').say;'
asdf
I'm closing this ticket.
Since the test in S32-exceptions/misc.t passes for Rakudo on Moar, Parrot and
JVM, I'm closing this ticket.
11 matches
Mail list logo