Created
June 28, 2021 21:34
-
-
Save gfldex/aebc7c83d8a570faf0a9936b1b5f0f18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constant $stdin-text = qq:to/EOH/; | |
I ♥ Raku! | |
1 22 333 4444 55555 6565656 | |
3.14159265358979323846264338327950288419716939937510582097494459 | |
A line with the number 42. | |
We may need some "quotes". | |
\c[END OF TEXT] | |
EOH | |
sub fake-lines { | |
gather .take for $stdin-text.split("\n"); | |
} | |
sub EXPORT { | |
IO::Path.^can('new')[0].wrap( -> | { die 'Restricted in evalbot.' }); | |
Proc::Async.^can('new')[0].wrap( -> | { die 'Restricted in evalbot.' }); | |
&lines.wrap(&fake-lines); | |
%( ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment