$ perl6 -e 'my $x="abc(123)def"; say $x ~~ m/(abc)(\(123\))(def)/;'

-am

On 13.03.17 00:27, ToddAndMargo wrote:
> Hi All,
> 
> What am I doing wrong here?
> 
> $ perl6 -e 'my $x="abc\(123\)def"; $x ~~ m/(abc\))(123)(\(def)/; say
> "$x\n\$0=<$0>  \$1=<$1>  \$2=<$2>\n";'
> 
> Use of Nil in string context
>   in block <unit> at -e line 1
> Use of Nil in string context
>   in block <unit> at -e line 1
> Use of Nil in string context
>   in block <unit> at -e line 1
> 
> abc(123)def
> $0=<>  $1=<>  $2=<>
> 
> 
> Many thanks,
> -T
> 
> 
> -- 
> ~~~~~~~~~~~~~~~~~~~~~~~~
> Yesterday it worked.
> Today it is not working.
> Windows is like that.
> ~~~~~~~~~~~~~~~~~~~~~~~~

-- 
Andreas Müller - Raum: 35/114b - Tel: 2875

Reply via email to