hello rakoons, I just gave a look on the new raku.org website and would like to congrat as it's really beautiful.
Aside, I saw the example which reminds me an old dicsussion about "spurt parameters should be flipped" and there is a perfect exemple in the homepage: my $content = "example.txt".IO.slurp; # Read file $content ~~ s/Hello/Hi/; # Modify content spurt $filename, $content; # Write back to file which could be writen with "example.txt".IO.slurp { s/Hello/Hi/; spurt $filename, $_ } but it we were able to write this: with "example.txt".IO.slurp { s/Hello/Hi/; .&spurt: $filename; } or if Str had a spurt method: with "example.txt".IO.slurp { s/Hello/Hi/; .spurt: $filename; } regards, -- Marc Chantreux
signature.asc
Description: PGP signature