checker bug to fix

Hi All,

perl6 -c

$Line ~~ m| "\/\"\>" (.*?) "\" ||;
my $Rev = $1;

produces

Variable '$Rev' is not declared

The actual error is too many pipe signs at
the end of the first line.

Many thanks,
-T
0
ToddAndMargo
6/12/2018 10:04:28 PM
perl.perl6.users 974 articles. 0 followers. Follow

2 Replies
6 Views

Similar Articles

[PageSpeed] 14

On 06/12/2018 03:04 PM, ToddAndMargo wrote:
> Hi All,
> 
> perl6 -c
> 
> $Line ~~ m| "\/\"\>" (.*?) "\" ||;
> my $Rev = $1;
> 
> produces
> 
> Variable '$Rev' is not declared
> 
> The actual error is too many pipe signs at
> the end of the first line.
> 
> Many thanks,
> -T


This would help.  Sorry.

$ perl6 -v

This is Rakudo version 2018.04.1 built on MoarVM version 2018.04.1
implementing Perl 6.c.
0
ToddAndMargo
6/12/2018 10:05:12 PM
On 06/12/2018 03:04 PM, ToddAndMargo wrote:

> $Line ~~ m| "\/\"\>" (.*?) "\" ||;

There is actually two errors:

    1   too many "|" at the end of the line

    2)  "\" should be "/".

The "my $Rev" was caused by escaping the quote,
resulting in the weird error message to be fixed
0
ToddAndMargo
6/12/2018 10:13:50 PM
Reply: