gfldex | @lakmatiol#8020 `$/` and thus `$0` are not automatically populated within a regex. They come to existence in any block or outside the regex. You can force that by having a block inside the regex. | 01:26 | |
m: say '12345671' ~~ / $<ref> = [ . ** 1 ] .+ $<ref> /; | 01:28 | ||
m: say '123456712' ~~ / $<ref> = [ . ** 2 ] .+ $<ref> /; | 01:29 | ||
Also, your example is wrong. :) | |||
08:26
lizmat_ left,
TempIRCLogger joined,
lizmat joined
08:55
dakkar joined
|
|||
@lakmatiol#8020 Because the contained block forces `$/` to be set. | 09:14 | ||
gabriel80546 | @gfldex#8222 hi | 09:21 | |
i want to use a predicate on a for loop | 09:22 | ||
for (1..7) but only the even numbers | |||
lizmat | for 2,4...6 # note the ... dots instead of .. | 09:23 | |
gabriel80546 | m: for (2,4..6) { $_.say } | 09:24 | |
lizmat | m: for 2,4...10 { .say } | ||
camelia | 2 4 6 8 10 |
||
lizmat | *must* use 3 dots, not 2 | 09:25 | |
gabriel80546 | m: for (2,4...6) { .say } | ||
thank you very much | |||
lizmat | I guess we need to smarten up Camela to recognize the bridged requests | ||
*Camelia | |||
gabriel80546 | i love this comunity always trying to improve | 09:27 | |
lizmat | if you look here, you'll see that the log parser already knows about discord bridges :-) | 09:28 | |
gabriel80546 | yeah that is very cool 🙂 | ||
i think i have contributed to the android raku | 09:29 | ||
in a question on stackoverflow | 09:30 | ||
but i am too busy on my work to contribute | |||
im so sorry | |||
lizmat | gabriel80546: don't worry :-) | 09:31 | |
we all do what we can :-) | |||
gabriel80546 | maybe i donate money when i possible for me | ||
lizmat | logs.liz.nl/raku-beginner/live.html is the link I forgot to post :-) | 09:37 | |
12:44
dszz joined
|
|||
dszz | hi | 12:45 | |
13:03
dszz left
|
|||
[Coke] | hi | 13:20 | |
lizmat | And yet another Rakudo Weekly news hits the Net: rakudoweekly.blog/2021/11/01/2021-...0-rakoons/ | 13:37 | |
14:18
Resol joined
14:24
Resol left
17:42
dakkar left
19:00
melezhik joined
19:39
melezhik left
20:31
melezhik joined
20:36
melezhik left
22:28
melezhik joined
22:39
melezhik left
|