-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Hi all,
I'm trying to substitute parts of a string, and thought this might be a
good use of a grammar. Sadly, grammars aren't my strong suit, so I
thought I'd ask the wider community for help. Maybe you guys know an
even better solution than using
Hi Patrick,
for note that this codeline:
my Str $input = "Here be a $(placeholder), for $(purpose) purposes.";
will not compile because Perl will try to interpolate $(placeholder) and
$(purpose) as vairables that have not been declared.
You need to use non interpolating quotes:
my Str $input
Oops, forgot to hit "reply-all" this morning... similar answer to
Laurent's with slightly different implementation.
-y
-- Forwarded message -
From: yary
Date: Tue, Aug 28, 2018 at 8:43 AM
Subject: Re: A grammar to provide substitution
this is simple enough to not require a