Skip to content

Instantly share code, notes, and snippets.

@librasteve
Created February 7, 2023 21:49
Show Gist options
  • Save librasteve/624fe58c68df87528fe5e97d35068496 to your computer and use it in GitHub Desktop.
Save librasteve/624fe58c68df87528fe5e97d35068496 to your computer and use it in GitHub Desktop.
Filter::Simple:from<Perl5> Test
#1 Build & Run this Dockerfile
git clone https://github.com/p6steve/raku-Dan-Paddle.git
# you are welcome to follow the Dockerfile steps (from the Inline::Perl5 installation guidance) in your env
cd raku-Dan-Paddle
docker build -t test .
docker run -it test
#2 Install Deps
cpanm install Filter::Simple
zef install Inline::Perl5
#3 Write a filter in test.raku
1 use Inline::Perl5;
2 use Filter::Simple:from<Perl5>;
3
4 FILTER { s/pint/print/g; }
#4 Run it
raku test.raku
-->
Unsupported use of /g. In Raku please use: :g.
at //scum.raku:4
------> FILTER { s/pint/print/g⏏; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment