develooper Front page | perl.perl6.users | Postings from August 2019

How do I use ~ with Regex syntax?

Thread Next
From:
ToddAndMargo via perl6-users
Date:
August 31, 2019 00:26
Subject:
How do I use ~ with Regex syntax?
Message ID:
f498569b-c3d9-fe26-6e9d-4a28ff4023c4@zoho.com
Hi All,

Yes, I know to just put the variable inside the quote, but
I'd still like to know how to do it outside the quote;


$NewPage ) ~~ s/ .*? "Full Change Log for Version " ~ $YearRev //;

------> Full Change Log for Version " ~ $YearRev⏏ //;
Couldn't find terminator /
at /home/linuxutil/./GetUpdates.pl6:4960
------>  s/ .*? "Full Change Log for Version " ~⏏ $YearRev //;
     expecting any of:
         /


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About