| 16 Apr 2026 | |||
| lizmat | m: sub a(*@a, *%h) { dd @a, %h }; a ("foo", :out) | 19:24 | |
| evalable6 | ["foo", :out] {} |
||
| lizmat | m: sub a(*@a, *%h) { dd @a, %h }; a "foo", :out | 19:25 | |
| evalable6 | ["foo"] {:out} |
||
| patrickb | Which delimiters am I allowed to use for delimiting the here doc terminator? Is that list of allowed terminators showing up anywhere else in the language? | 19:43 | |
| lizmat | you mean heredoc or quoting in general | 19:45 | |
| the heredoc terminator needs to be an identifier | 19:46 | ||
| afaik | |||
| patrickb | I mean the thing that delimits the terminator. q:to/TERM/ <- the slash in this case | 19:48 | |
| ' is forbidden | 19:49 | ||
| lizmat | right, so that's not specific to heredocs | ||
| patrickb | < is ok | ||
| lizmat | afaik, anything that you can do with q// | ||
| patrickb | ah | ||
| got it. Thanks! | 19:50 | ||
| lizmat | the :to is basically just an adverb that initiates some special grammar handling | ||
| but that's really it | |||
| patrickb | Whoop! Got it working. Now Rainbow gets that right also. | 19:57 | |
| tester123451 | tester123451 joined | 20:20 | |
| tester123451 | tester123451 left | 20:21 | |
| soverysour | soverysour joined | 20:27 | |
| soverysour | soverysour left | 20:31 | |
| [Coke] | if I am on windows, and I have a path like "C:\\a\rel\path", and I want only "rel/path"... what is the correct way to do that? I have cheated and feel bad. | 21:46 | |
| I have a var with "C:\\a" in it, so I strip off a leading C:\\a and an optional / or \, then subst all \ to / | 21:47 | ||
| Surely there are methods to do what I want here by converting between IO::Paths. | |||