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

Re: How do I use ~ with Regex syntax?

Thread Previous | Thread Next
From:
Paul Procacci
Date:
August 31, 2019 00:51
Subject:
Re: How do I use ~ with Regex syntax?
Message ID:
CAFbbPuiebv-XwxtT4M=gAO7nWjxvBuV5VbUi2SLHU2mgSfdcZA@mail.gmail.com
Drop the '~'.

$b ~~ s/ .*? "In the year " $a//;

~Paul


On Fri, Aug 30, 2019 at 8:26 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> 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 Previous | 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