Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created June 28, 2021 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfldex/aebc7c83d8a570faf0a9936b1b5f0f18 to your computer and use it in GitHub Desktop.
Save gfldex/aebc7c83d8a570faf0a9936b1b5f0f18 to your computer and use it in GitHub Desktop.
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