Skip to main content
Filter by
Sorted by
Tagged with
Tooling
2 votes
2 replies
73 views

I want to assign my $FOO = $foo if $foo.defined; I tried my $FOO with= $foo; but that doesn't work. Is there a canonical way to do this?
Jim Bollinger's user avatar
1 vote
1 answer
48 views

I would like to import Test::Color only when %*ENV<TEST_COLOR> is set. I can't put use inside an if block, because use happens at compile time.  I put require inside the if block, to no effect. ...
Jim Bollinger's user avatar
-3 votes
2 answers
188 views

I would like to develop a raku script that can search a word list for words of the same length which contain the same characters except for one. For example 'castle' and 'cattle' would be appropriate ...
Jim Bollinger's user avatar
Advice
0 votes
4 replies
44 views

I have a tree of modules Air::Base, Air::Base::Tools and so on, and I want to re-export the Air::Base::Tools enum from Air::Base to code that uses that. Air::Base::Tools rakumod… sub exports-air-base-...
librasteve's user avatar
  • 7,741
5 votes
1 answer
128 views

Using only features from the Raku specification, i.e., not using any implementation-specific features, is there a way to get the method objects for a given class / object? I'd like to do something ...
zjmarlow's user avatar
  • 725
6 votes
1 answer
123 views

I'm trying to understand this behavior/error message. If I pass a pair where the key is unquoted to a slurpy hash, it succeeds. If I pass a pair where the key is explicitly quoted to a slurpy hash I ...
JustThisGuy's user avatar
  • 1,251
Advice
3 votes
2 replies
120 views

Sometimes, I write code like my $x = do { my $result = get-result; do-a-thing-that-would-change-result; $result }; . Whenever I do, I yearn for an operator to express this idea. You ...
darch's user avatar
  • 4,338
5 votes
1 answer
96 views

In Raku, is it, or will it ever be possible to set required private attributes without writing a BUILD submethod? E.g., the following does not work: class C { has Str:D $!name is required; } C.new:...
zjmarlow's user avatar
  • 725
7 votes
2 answers
233 views

Given the input file: ---------------- A ---------------- information for A on these lines ---------------- B ---------------- Something about B on these lines etc I want to produce: A: information ...
Norman Gaywood's user avatar
2 votes
1 answer
127 views

Following the documentation and this SO answer I wrote the following class with clone method, but the tests in the code do not give the expected result. use v6.d; use Test; class Numeration { ...
Richard Hainsworth's user avatar
3 votes
2 answers
157 views

Background: In build.rakumod I have several multi sub MAIN( ... ), one of which is: multi sub MAIN( :$config = 'config', #= localised config file Bool :install($)!, #= install a config ...
Richard Hainsworth's user avatar
5 votes
1 answer
171 views

I have color codes stored in an array. I cannot print color when I take a color code from the array, but I can print color if I use the code directly in a "say" or "print" ...
lisprogtor's user avatar
  • 5,871
1 vote
0 answers
132 views

This screen transcript pretty much says it all: ftype PerlScript=C:\strawberry\perl\bin\perl.exe "%1" %* RakuScript=C:\rakudo\bin\raku.exe "%1" %* assoc .pl=PerlScript .raku=...
hsmyers's user avatar
  • 721
2 votes
2 answers
206 views

I'm looking for a Raku regex that matches two or more consecutive dots unless there are three dots. These strings should match: Yes.. Please go away. I have the ball.. In this case....I vote yes. ...
jubilatious1's user avatar
  • 2,493
4 votes
0 answers
134 views

I have Linux kernel 5.15.0-94-generic. I downloaded rakudo-star-2025.06.1.tar.gz. I gunzip and tar xf in a directory, and in this directory, I do "./bin/rstar install" as I did with previous ...
lisprogtor's user avatar
  • 5,871

15 30 50 per page
1
2 3 4 5
140