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. |
|||
greenfork | @antononcube I was actually referring to the repl command, since it effectively solves the problem of inspecting file contents after the file was run | 04:44 | |
But since you asked, here is an example that works for me: paste.sr.ht/~greenfork/4cecd40746d...ae6b07664e | |||
You will need to change the path to the file, and after running the imported.raku, you will see two messages printed, first from exported and second on use | 04:45 | ||
s/imported/importing/ | 04:46 | ||
09:34
lizmat_ left,
lizmat joined
10:02
lizmat left
10:04
lizmat joined
10:12
lizmat left
10:32
lizmat joined
|
|||
antononcube | @greenfork Great! It is how ugexe adviced. What if the file name has white spaces? | 10:47 | |
10:52
fred123 joined
11:14
fred123 left
|
|||
greenfork | @antononcube I have just put a space there, it worked: require WHATEVER:file</home/grfork/for export.raku> | 12:10 | |
antononcube | I find that surprizing! 🙂 | 12:52 | |
greenfork | Well I guess it's good as long as it works :^) | 16:17 | |
16:54
meooow left
21:52
lizmat left,
lizmat joined
22:11
lizmat_ joined
22:15
lizmat left
|