On Sat, Oct 25, 2008 at 10:52:13AM +0200, Moritz Lenz wrote:
Chris Dolan wrote:
I stumbled across this issue while descending into a recursive Match
structure. Consider the following reentrant subroutine:
You have just experienced this bug:
On Mon, Oct 27, 2008 at 04:07:39PM -0500, [EMAIL PROTECTED] wrote:
On Sun, Oct 26, 2008 at 10:45 PM, Chris Dolan [EMAIL PROTECTED] wrote:
S05 always uses single curlies for closures, but throughout Parrot, code
seems to use double curlies in PGE regexps. Why is that?
That is, why this:
Some of you may have seen the announcements on the Parrot
lists that Parrot will be starting to use trac.parrot.org
for its issue tracking and bug reporting system.
This is just a note that Rakudo's bug reports will continue
to be hosted on the rt.perl.org server, and we will continue
to use
On Sun, Jan 04, 2009 at 05:20:56PM +0300, Richard Hainsworth wrote:
I posted an email to per6-all asking about how one should go about
reporting bugs. That message has appeared on the list.
So again: how can bugs be reported?
See the Reporting bugs section of README file in languages/perl6.
On Tue, Jan 06, 2009 at 04:41:30PM +0300, Richard Hainsworth wrote:
Supposed I define
regex digit { [0..9] }
Note that you probably want
regex digit { [0..9] }
Also, Perl 6 already provides a 'digit' rule by default, although
it's digits in the Unicode sense as opposed to simply the
On Mon, Jan 12, 2009 at 12:11:59PM +0300, Richard Hainsworth wrote:
But
my @ranking = %players.sort :{.value}; # white space before :, no ws after :
generates a syntax error with rakudo.
Is this a raduko bug, or am I not understanding your generic argument?
Rakudo doesn't recognize adverbial
On Fri, Jan 16, 2009 at 03:45:48AM -0700, Perl wrote:
Moritz was one of the first to guide it to the idea of making a logo for
Rakudo Perl 6 - as there's nothing yet (really) available. I thought that
would be a neat project and scratch some of my person itches.
It would be a very neat
On Fri, Feb 27, 2009 at 09:07:10PM +, Ross Kendall wrote:
Thanks for the Vienna release. All of a sudden Perl 6 feels a lot more
accessible.
Yay, that was one of the big goals for the release.
Are there plans to set up a new website for Rakudo now it's on its own?
If so, I would be
On behalf of the Rakudo development team, I'm pleased to announce
the March 2009 development release of Rakudo Perl #15 Oslo.
Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1].
The tarball for the March 2009 release is available from
On Tue, Mar 24, 2009 at 11:29:08AM -0400, Guy Hulbert wrote:
On Tue, 2009-24-03 at 14:17 +, Ross Kendall wrote:
I was thinking that a logo doesn't really need to incorporate a symbol
(e.g. camel, onion etc.), and that one of the more important aspects of
a logo is the typography.
On Tue, Mar 24, 2009 at 10:24:47AM -0700, Larry Wall wrote:
I want something
with gut appeal on the order of Tux. In particular I want a logo
for Perl 6 that is:
Fun
Cool
Cute
Named
Lively
Punable
[...]
+2 to this approach.
Pm
On Wed, Mar 25, 2009 at 10:36:56AM -0400, Mark J. Reed wrote:
Rakudo is a particular implementation of Perl 6 using Parrot. While
it is a separate project from both Perl 6 and Parrot, it is intimately
tied to both, and I think its logo should reflect that. I don't see
much point in having
As some of you are aware, this week is the Nordic Perl Workshop [1],
and in the days immediately following the workshop we will have
the Oslo Perl 6 Hackathon [2]. During the first day of the hackathon
Gabor Szabo will be doing a Hands-on Perl 6 training course [3],
the other two days will be for
On behalf of the Rakudo development team, I'm pleased to announce
the April 2009 development release of Rakudo Perl #16 Bratislava.
Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1].
The tarball for the April 2009 release is available from
On Sat, May 23, 2009 at 07:33:06PM +0200, Christian Aperghis wrote:
Reini Urban a écrit :
Patrick R. Michaud schrieb:
On behalf of the Rakudo development team, I'm pleased to announce
the May 2009 development release of Rakudo Perl #17 Stockholm.
Rakudo is an implementation of Perl 6
On Thu, Jun 04, 2009 at 12:12:06AM +0200, Chris Mair wrote:
I'm new here, so forgive me if this is not the right list.
You're in the right place!
After having used perl5 a lot years ago, this weekend I
finally decieded to have a look at perl6.
[...]
Anyway, the parrot and rakudo files were
On behalf of the Rakudo development team, I'm pleased to announce
the June 2009 development release of Rakudo Perl #18 Pittsburgh.
Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1].
The tarball for the June 2009 release is available from
On Sun, Jul 12, 2009 at 12:07:14AM -0400, Chas. Owens wrote:
On Sat, Jul 11, 2009 at 22:02, Minimiscienceminimiscie...@gmail.com wrote:
- How does one declare multiple variables of the same type with a single
my statement? Is it my Int ($x, $y);, my(Int $x, Int $y);, or
something else?
[This notice is going out a bit late; the release was indeed
produced on time, but I was delayed in sending out this notice.
With apologies for the delay... --Pm]
On behalf of the Rakudo development team, I'm pleased to announce the
January 2010 development release of Rakudo Perl #25
On Mon, Jun 21, 2010 at 09:47:37AM +0100, Smylers wrote:
Larry Wall writes:
On Fri, Jun 18, 2010 at 11:21:52AM +0200, Jan Ingvoldstad wrote:
: On Fri, Jun 18, 2010 at 11:15, Smylers smyl...@stripey.com wrote:
:
: For the benefit of Perl 5 programmers used to string reverse it
: would
On Fri, Jun 25, 2010 at 06:31:57AM +, Xi Yang wrote:
For example: use parrot Foo::Bar, which would load parrot
library under Foo/Bar. However, this would be easy and useful
for rakudo, but would not for other possible Perl6 implementations.
I think
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the July 2010 release of Rakudo Star, a useful and usable
distribution of Perl 6. The tarball for the July 2010 release is
available from http://github.com/rakudo/star/downloads.
Rakudo Star is aimed at early adopters of
On Fri, Jul 30, 2010 at 04:08:49PM +0400, Richard Hainsworth wrote:
On 07/30/2010 01:27 PM, Steffen Schwigon wrote:
Richard Hainsworthrich...@rusrating.ru writes:
I am not aware that there is a convenient way of obtaining a short
description about each module, other than just the name?
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the October 2010 release of Rakudo Star, a useful and usable
distribution of Perl 6. The tarball for the October 2010 release is
available from http://github.com/rakudo/star/downloads.
Rakudo Star is aimed at early
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the December 2010 release of Rakudo Star, a useful and usable
distribution of Perl 6. The tarball for the December 2010 release is
available from http://github.com/rakudo/star/downloads.
Rakudo Star is aimed at early
On Sat, Jan 01, 2011 at 12:53:17PM +0100, Daniel Carrera wrote:
On Sat, Jan 1, 2011 at 12:36 PM, Moritz Lenz mor...@faui2k3.org wrote:
Given the current version number scheme (year.month), it's highly
unlikely that we'll ever see a Rakudo 1.0.
So I'd change that to after a production
On Sun, Jan 02, 2011 at 06:25:18PM +0100, Jan Ingvoldstad wrote:
On Sun, Jan 2, 2011 at 18:05, Guy Hulbert gwhulb...@eol.ca wrote:
On Sun, 2011-02-01 at 10:27 -0600, Patrick R. Michaud wrote:
- What was the first production release of Linux?
- At what point was each
(Resending, since I had the wrong date in the subject line of
my previous post. Apologies to everyone for the duplicates! --Pm)
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the January 2011 release of Rakudo Star, a useful and usable
distribution of Perl 6. The
On Fri, Apr 22, 2011 at 12:33:45AM +0100, gvim wrote:
The Perl 6 binary within the January release of Rakudo Star
is 10Mb on my Snow Leopard system. Do I take it that the
Perl 6 binary is [...] much larger than the current
Perl 5.12 (1.6Mb) or is it simply that the Perl 6 binary
is likely
On Fri, Apr 22, 2011 at 10:27:47AM -0400, Guy Hulbert wrote:
On Fri, 2011-22-04 at 09:09 -0500, Patrick R. Michaud wrote:
We can
actually make the perl6 executable file itself as small as
50K, but the first thing it then does is load a several-megabyte
Parrot bytecode library
On Fri, Apr 22, 2011 at 05:15:30PM +0200, Moritz Lenz wrote:
After some futher analysis I found that perl6.pbc and the perl6 binary
both are about 11MB in size - and 1.3MB when compressed with gzip.
So if anybody actually wants to do something about the size, teach
parrot's pbc_to_exe
On Tue, May 08, 2012 at 01:02:24AM -0700, Stefan O'Rear wrote:
On Tue, May 08, 2012 at 05:19:40AM +0200, Frederik Schwarzer wrote:
Hi,
I had a little problem with rindex and wrote a small demo code that
shows what I found.
$ install/bin/perl6 -e 'say perł.rindex(e);' perl
substring not
Oops, typo:
On Thu, Jun 28, 2012 at 11:39:22AM -0500, Patrick R. Michaud wrote:
To get say to act like print with a newline, one can do
say [~] ar
That should be
say [~] arg1, arg2, arg3 ...
For the 'a'.WHAT case, this gives
say [~] 'a'.WHAT
use of uninitialized value
On Sat, Jun 30, 2012 at 07:21:10PM +0300, Gabor Szabo wrote:
On Sat, Jun 30, 2012 at 7:16 PM, Patrick R. Michaud pmich...@pobox.com
wrote:
On Sat, Jun 30, 2012 at 06:39:55PM +0300, Gabor Szabo wrote:
Is there a list of recommended package to install before building Parrot?
The Rakudo Star
On Thu, Jul 12, 2012 at 05:36:58PM +0300, Gabor Szabo wrote:
The following script leaves and epty 'data.txt' behind.
Only if I call $fh.close is the file contents saved.
Is this a feature?
use v6;
my $fh = open 'data.txt', :w;
$fh.print(hello\n);
While Rakudo and Parrot _should_ be
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the July 2012 release of Rakudo Star, a useful and
usable distribution of Perl 6. The tarball for the July 2012
release is available from http://github.com/rakudo/star/downloads.
In the Perl 6 world, we make a
On Tue, Jan 08, 2013 at 12:14:22PM -0500, Ted Zlatanov wrote:
On Mon, 7 Jan 2013 17:51:52 +0100 Carl Mäsak cma...@gmail.com wrote:
CM Ted ():
Are state variables available now, or is the every(N) functionality
possible in some other way now?
CM Why not try it by writing a small
On Tue, Mar 05, 2013 at 11:13:51AM +0100, Rob Hoelz wrote:
I already have my own package for Arch Linux for Rakudo Star, and I keep
the OS X homebrew package up-to-date as well. I'd like to create an RPM
spec file and a DEB spec file as well. I have two questions:
1) Do these spec files
On Tue, Mar 05, 2013 at 12:02:01PM +0100, Rob Hoelz wrote:
On 3/5/13 11:44 AM, Patrick R. Michaud wrote:
It may also be worth noting/reminding that Rakudo Star has never been
intended to be the only or even primary module collection, it's just
one of the first. It could make good sense
On Sun, May 26, 2013 at 09:54:21AM -0500, Hao Wu wrote:
However, why 42? any relation to meaning of life? It seems I miss
something. Thanks.
42 is the Answer to the Ultimate Question of Life, the Universe,
and Everything, which is sometimes shortened to be meaning of life.
See
## A useful, usable, early adopter distribution of Perl 6
On behalf of the Rakudo and Perl 6 development teams, I'm happy to
announce the May 2013 release of Rakudo Star, a useful and usable
distribution of Perl 6. The tarball and Windows .MSI for the May 2013
release are available from
On Thu, May 30, 2013 at 11:08:13PM -0500, Patrick R. Michaud wrote:
This Star release includes [release 2013.05] of the
[Rakudo Perl 6 compiler], version 5.2.0 of the [Parrot Virtual
Machine] ...
Oops. The 2013.05 release actually contains Parrot 5.3.0.
Sorry about the typo.
Pm
On Tue, Sep 24, 2013 at 02:14:50AM +0200, Marc Chantreux wrote:
Come on, Perl6 people! did i miss something that takes carre of separators?
it would be nice to have something like:
I think it's currently specced in S32 as :nl(\n).
See http://perlcabal.org/syn/S32/IO.html#open and
On Fri, May 23, 2014 at 03:08:38PM -0400, Peter Schwenn wrote:
Still it would be more straightforward to have something like
$layn ~~ s:g/ (\W) [[RMA\.]? OpenNURBS\.]? I? On ([2..4]) dPoint
/$0Rhino.Geometry.Point$1d/;
and have a more perl6-built-in way of getting hold of the
On Tue, Sep 09, 2014 at 10:07:46PM +0200, Alex Becker wrote:
Hitting the download button for Perl 6 leads to this page:
http://rakudo.org/downloads/star/
There is a set of undocumented files. For 2014.08, there is one msi file
with the Suffix moar, and one with the Suffix parrot.
To avoid the
:39AM +0200, Gabor Szabo wrote:
No. If I remove the leading m from the regex, then the bug is gone.
Gabor
On Tue, Dec 30, 2014 at 9:19 AM, Patrick R. Michaud pmich...@pobox.com
wrote:
Out of curiosity, is the bug still present if you use /\.txt$/ instead of
m/\.txt$/ ?
At the moment
If you're running Rakudo on MoarVM, try the --profile option. It will create
an HTML file that shows a lot of useful information, including time spent in
each routine, call graphs, GC allocations, etc.
Pm
On Wed, Dec 31, 2014 at 09:35:33AM +0200, Gabor Szabo wrote:
The Perl 6 Maven site is a
On Tue, Apr 14, 2015 at 08:58:27PM -0400, Nathan Gray wrote:
I've run into a snag, in that my strptime processing in Perl 5
relies on building a string that looks like a regex with named
captures, and then interpolating that into a real regex.
[...]
my $pattern = Q/$greeting=[hello]/;
On Sat, Jun 27, 2015 at 05:39:32PM -0500, Tom Browder wrote:
I'm trying to take advantage of the MAIN suroutine to handle most all of my
routine command line arg handling. One idiom I use a lot is for the user
to choose only one of two args, but one must be chosen.
Perhaps you want that the
On Thu, Jul 02, 2015 at 03:22:17PM -0400, Brandon Allbery wrote:
On Thu, Jul 2, 2015 at 3:08 PM, Tom Browder tom.brow...@gmail.com wrote:
1. Write the 'main' program as another subroutine and call it from
each of the appropriate multi
subs--aarghh!
This seems like the right one to
While I recall that we've often discussed building command history into
Rakudo's REPL directly, the workaround suggested to me was to use 'rlwrap':
$ rlwrap ./perl6
Then the arrow keys work, as well as CTRL-P and other bash-like history
commands. I've never used CTRL-K for history, but
On Tue, Dec 29, 2015 at 01:57:57AM -0800, Darren Duncan wrote:
> On that note, are there going to be Perl 6 versions 6.x.y where {x,y} are
> integers? Will 6.0.0 be the first such one? -- Darren Duncan
This was the topic of my FOSDEM talk last year, and then again at YAPC::NA.
"Perl 6" is a
On Thu, Jan 21, 2016 at 01:39:15PM -0600, Aaron Baugher wrote:
> Tom Browder writes:
>
> > Thanks, Aaron, good explanation. But can you find a description of
> > '<->' in the Perl 6 docs?
>
> It's mentioned here: https://doc.perl6.org/language/control#for
>
> And here,
I think the canonical Perl 6 answer is:
for @array.kv -> $index, $value { do something }
Pm
On Tue, Feb 28, 2017 at 01:20:47PM -0800, ToddAndMargo wrote:
> Hi All,
>
> There are times when I want to know th4e index of an array
> when I am in a "for @array" loop. I can do it with a
>
On Tue, Sep 13, 2016 at 10:35:01AM -0400, Bennett Todd wrote:
> Having the minutia of the programmatic run-time state of the parse then
> influence the parse itself, is at the heart of the perl5 phenomenon "only
> Perl can parse perl", which I rather hope isn't going to be preserved in
> perl6.
On Thu, Aug 25, 2016 at 10:37:45AM -0700, Dipesh Sharma wrote:
> Dependency on perl5 for building perl6 looks like a concern. It means that
> we can't have and environment with perl6, without perl5.
I disagree. Just because perl5 is currently required to *build* Rakudo
doesn't mean that perl5
On Mon, Oct 03, 2016 at 04:26:10PM +0200, Elizabeth Mattijsen wrote:
> > On 02 Oct 2016, at 11:00, Thor Michael Støre wrote:
> > Is this normal startup performance?
>
> https://www.promptworks.com/blog/public-keys-in-perl-6
>
> I wonder what would be needed to run this in
On Sun, Oct 02, 2016 at 11:00:38AM +0200, Thor Michael Støre wrote:
> Thormicks-MacBook-Pro-3:~ thormick$ time perl6 -e "say 'foo'"
> foo
>
> real 0m0.205s
> user 0m0.150s
> sys 0m0.045s
>
> [...]
>
> Foo indeed! ~200ms for this seems awfully slow to me.
On another hand, my machine shows:
On Tue, Mar 21, 2017 at 02:25:02PM -0400, Brandon Allbery wrote:
> On Tue, Mar 21, 2017 at 7:38 AM, ToddAndMargo wrote:
> > $Name.IO.f or $Name.IO.open(:w).close;
>
> fwiw I consider this a perl3_to_5-ism; it's an optimization, and a fairly
> poor one for readability and
On Tue, Mar 21, 2017 at 02:46:43PM -0400, Brandon Allbery wrote:
> On Tue, Mar 21, 2017 at 2:37 PM, Patrick R. Michaud <pmich...@pobox.com>
> wrote:
> > > On Tue, Mar 21, 2017 at 7:38 AM, ToddAndMargo <toddandma...@zoho.com>
> > wrote:
> > &g
On Mon, Mar 20, 2017 at 02:36:49PM +0100, Francesco Rivetti wrote:
> On 18. mars 2017 11:54, Elizabeth Mattijsen wrote:
>
> > if (my $x = frobnicate(42)) {
> > say $x
> > }
> [...]
> > if frobnicate(42) -> $x {
> > say $x
> > }
>
> which is way more elegant. Should this make it wise to
How about...
$ echo "a b c d" | ./perl6 -n -e '.words[1].say'
b
Pm
On Fri, Aug 04, 2017 at 01:00:52PM -0700, ToddAndMargo wrote:
> Hi All,
>
> How do I do this with a perl one liner?
>
> $ echo "a b c d" | awk '{print $2}'
> b
>
> Many thanks,
> -T
On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo wrote:
> given an object $o and the name of a method in $method = "run"
> how can I invoke the $o.run() ?
>
> Something like $o.call($method)
At one point it was done as $o."$method"() .
> my $method = 'say'; 123."$method"();
123
Pm
On Wed, Jun 14, 2017 at 04:00:05PM +0300, Gabor Szabo wrote:
> In the python interactive shell one can write dir(object) and it
> lists the attributes and methods of the object. One can write
> help(object) and get the documentation of the object.
> Is there anything similar in Perl 6?
I think
On Wed, May 31, 2017 at 09:33:59AM -0400, Brock Wilcox wrote:
> One of my dreams is to adopt a client/server + middleware model from nREPL
> (clojure) which I think works really well, and likely to do that in
> userspace as a regular module. Moving everything into REPL.pm (perl6
> instead of nqp)
On Fri, Sep 15, 2017 at 04:54:33PM -0400, Brandon Allbery wrote:
> On Fri, Sep 15, 2017 at 4:51 PM, ToddAndMargo wrote:
> > On 09/15/2017 01:29 PM, Brandon Allbery wrote:
> >> Everyone does at one time :) It's really useful for debugging, but you
> >> generally strip it out
On Fri, May 18, 2018 at 03:28:20PM +0200, Timo Paulssen wrote:
> On 18/05/18 13:30, The Sidhekin wrote:
> >
> > / ^ <[d..z]>* $/
>
> That's pretty good! Putting the beginning-of-string anchor ^ anywhere
> but the very start is surely an advanced move :)
FWIW, sometimes I think it's worth
On Sun, May 20, 2018 at 03:02:34PM -0700, ToddAndMargo wrote:
> On 05/20/2018 10:40 AM, Patrick R. Michaud wrote:
> > On Fri, May 18, 2018 at 03:28:20PM +0200, Timo Paulssen wrote:
> > > On 18/05/18 13:30, The Sidhekin wrote:
> > > >
> > > > / ^ &l
On Tue, Jul 31, 2018 at 09:28:08PM +0200, Marc Chantreux wrote:
> @*ARGS.map: {
> gather {
> my @lines;
> for .IO.lines -> $l {
>if /'›'/ {
>@lines and take @lines;
>@lines = $l;
>}
>else {
>
Maybe something like...?
$ cat t.p6
sub infix:(Callable $block, $otherwise) {
CATCH { return $otherwise; }
$block();
}
sub divide($a, $b) { die "Zero denominator" if $b == 0; $a / $b }
my $sixdivzero = { divide(6,0) } rescue -1;
say "6/0 = ", $sixdivzero;
my $sixdivtwo = { divide(6,2)
uld use Thunk as a type:
>
> sub infix:(Thunk:D $block, $otherwise) { }
>
> which would then allow you to do:
>
> my $sixdivzero = divide(6,0) rescue -1; # note absence of curlies
>
>
>
> One can wish, can’t one?
>
>
> Liz
>
> > On 3 Aug 2018,
The + essentially indicates that this is a character-class match. It's to
distinguish things from <.alpha>, , , <-alpha>, and
(among others).
Pm
On Fri, Aug 03, 2018 at 08:48:24PM +0200, Timo Paulssen wrote:
> The + is required, perhaps because the first character after the opening
> < is
On Wed, Jul 25, 2018 at 11:48:30AM -0700, ToddAndMargo wrote:
> Maybe I am trying to get "-c" to do too many things.
>
> What I would like it to do is to check everything right up to but not
> actually run the program.
Part of the challenge here is that unlike many other programming languages,
I suspect the rule:
rule other { . }
means that in
$input = '~i << to
match (although will also end up matching the space after the "i" in
the text string, since white spaces are no longer significant). Or try just
changing the rule to be a token and leave the others as rules.
The (.*?) pattern will match an empty string.
Thus $0 gets the dollar sign, $1 is "", and "$" ~ "" (i.e., "$") gets replaced
by "" ~ "USD" (i.e., "USD").
So the net result is to replace the single dollar sign by "USD", resulting in
"USD1.23".
You might want to remove the ? modifier from
My guesses at Perl 6 versions of the Perl 5 example:
say .split(':')[0, 2, 1, 5].join("\t") for lines;
-or-
for lines { say .split(':')[0, 2, 1, 5].join("\t") }
Pm
On Mon, Jul 29, 2019 at 12:49:51PM -0700, William Michels via perl6-users wrote:
> Hello, Just a short backgrounder to say
Because Str is treated as a set of graphemes, and "\r\n" is treated as a single
character, .substr() is doing the right thing here.
If you really want to treat it as a series of codepoints, you may want to go
through Blob/Buf to get there:
> "1234\r\n78".encode.subbuf(*-4)
utf8:0x<0D
On Wed, Feb 12, 2020 at 10:27:20AM -0300, Aureliano Guedes wrote:
> So, I'd like to find a way to test if two variables are bound or not,
> especially concerning their memory address.
>
> If the address is not fixed for a lifetime, I must be able to test it in
> just one cycle.
> > $a.WHERE ==
"say $x" is essentially equivalent to "put $x.gist".
Since Nil is undefined (roughly equivalent to a type object), Nil.gist has a
string value of "Nil" and can be printed. However, attempting to convert Nil
directly into a Str throws an error because that's attempting to stringify an
On Thu, May 21, 2020 at 08:40:08PM +, David Santiago wrote:
> Can someone explain me why my grammar isn't working? Unfortunately i
> can't figure it out :-(
>
> | headers
> | | header
> | | * MATCH "Proxy-Connection"
> | | header-value
> | | * MATCH "keep-alive\n"
> | | crlf
> | |
On Fri, Sep 25, 2020 at 12:37:49PM +0200, Elizabeth Mattijsen wrote:
> > On 25 Sep 2020, at 04:25, Brad Gilbert wrote:
> > Rakudo does not use ICU
> >
> > It used to though.
> >
> > Rakudo used to run on Parrot.
> > Parrot used ICU for its Unicode features.
>
> I do remember that in the Parrot
On Mon, May 25, 2020 at 12:07:22AM +0200, Tobias Boege wrote:
> @things.sort: {
> .comb(/ \d+ | \D+ /)
> .map({ .Int // .self })
> }
Or how about even somethig like
@things.sort: *.Version;
which does handle a reasonable set of version semantics...?
(The .Version method was
On Mon, Oct 26, 2020 at 08:04:21PM +0100, Elizabeth Mattijsen wrote:
> > On 26 Oct 2020, at 18:40, Sean McAfee wrote:
> > Is this the intended behavior? The doc page on quoting constructs
> > just says that values can be interpolated with braces, but (at least
> > to my eyes) doesn't suggest
The "any" function is just like any other function taking an arbitrary list of
arguments (including user-defined functions). As such it parses with lower
precedence than comparison operators -- so "eq" binds more tightly than "any".
Thus
say so any eq any ;
parses like
say(so(any( eq
On Fri, Jan 01, 2021 at 05:41:04PM -0800, ToddAndMargo via perl6-users wrote:
> On 1/1/21 6:32 AM, David Santiago wrote:
> > say $_ for {0.1+$_}...^5
>
> Is there a way to do this without the finger wagging?
>
> say $_ for {0.1+$_}...^2
If you're going to a sequence operator ("...") instead of
On Sat, Jan 30, 2021 at 05:52:54PM -0800, Joseph Brenner wrote:
> Which means there's some potential confusion if you really need
> to match quotes:
>
> my $str = 'string_632="The chicken says--", voice="high"';
>
> say
> $str ~~ m:g{ ( " .*? " ) }; # False
> say
> $str
On Sat, Aug 21, 2021 at 12:50:21PM -0700, Joseph Brenner wrote:
> But then, in a case like this one, how would you know in advance
> that it would work, without Just Trying It:
>
> my @monsters = < godzilla grendel wormface blob >;
> my $cool_monsters = < godzilla ghidra mothera >.Set;
>
On Wed, Jul 14, 2021 at 07:41:14PM +, Daniel Sockwell wrote:
> (Also, you may already know this, but when the keys of your hash are
> strings, you can write %a instead of %a{'column1'} )
A minor nit: this only works if the string keys don't contain whitespace.
(The single angle bracket
On Mon, Aug 09, 2021 at 01:00:52PM -0700, Joseph Brenner wrote:
> There's this much:
>
> https://docs.raku.org/language/variables#index-entry-$$CIRCUMFLEX_ACCENT
>
> > If you have self-declared a parameter using $^a once, you may refer to it
> > using only $a thereafter.
>
> But it doesn't go
This is a place where .comb() is likely much better than .split() -- .comb()
allows you to specify what you're wanting instead of what you're wanting to
avoid:
$ raku -e "say sqrt(2).comb(/\d/).join(', ');"
1, 4, 1, 4, 2, 1, 3, 5, 6, 2, 3, 7, 3, 0, 9, 5, 1
If you want only the first 10
Perhaps not really what you're intending, but here's how I'd start:
$ raku -e 'my $x="1.2.3.4"; $x ~~ s!\d+$!0/24!; say $x;'
1.2.3.0/24
The pattern part of the substitution matches all of the digits at the end of
the string (\d+$), then replaces them with the string "0/24". Everything
91 matches
Mail list logo