This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
knorrfg Hey, me again 😄 I'm currently experimenting with rakus pkgs. I'd like to be able to store all dependencies for a script together with a script. I've used zef's -to argument to store the installed dependencies to a directory "zeftest" that lies next to a test script. And if I run the test-script like this: RAKULIB="inst#/tmp/zeftest" raku foo.raku it works. But I'd like to put that information into the 11:31
script. I've tried: %*ENV<RAKULIB> = "inst#" ~ $*PROGRAM.dirname ~ "/zeftest"; which unsurprisingly didn't work, and i tried use lib $*PROGRAM.dirname ~ "/zeftest"; but that didn't work either. Is it possible?
lizmat knorrfg why so difficult? why not make a distribution with said script in the "bin" dir and all the dependencies in the META6.json? 12:02
afk&
knorrfg I'm not aware of any of that. I'll read up what that means ^^ I simply want a repo that contains raku script to only have rakudo as dependency, even if I use packages, the easier the better 12:27
nemokosch Yes, this sounds like a very commonsensical approach to modularity, one that works without any fanfares in a lot of languages from JS and Python to Java and Ada 12:38
deoac m: my regex foo { <?after W> X | X <?before Y> } 16:43
camelia ( no output )
deoac m: 'WXa' ~~ /<foo>/
camelia No such method 'foo' for invocant of type 'Match'
in block <unit> at <tmp> line 1
deoac m: my regex foo { <?after W> X | X <?before Y> }; 'WXa' ~~ /<foo>/ ; 'aXY' ~~ /<foo>/; 'aXa' ~~ /<foo>/ 16:44
camelia ( no output )
deoac m: my regex foo { <?after W> X | X <?before Y> }; say so 'WXa' ~~ /<foo>/ ; say so 'aXY' ~~ /<foo>/; say so 'aXa' ~~ /<foo>/ 16:45
camelia True
True
False
deoac good, that one worked.
Is there a more idiomatic way of matching an 'X' that is either *before* a 'Y' or *after* a 'W' ? 16:46
Within a grammar, what is the difference between 'token foo {...}' and 'my token foo {...}' ? 20:17
snonux i guess one (the one with "my") is lexically scoped (i don't know, really) 21:21