Created
February 7, 2023 21:49
-
-
Save librasteve/624fe58c68df87528fe5e97d35068496 to your computer and use it in GitHub Desktop.
Filter::Simple:from<Perl5> Test
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
#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