develooper Front page | perl.perl6.users | Postings from June 2017

need p5 to p6 help

Thread Next
From:
ToddAndMargo
Date:
June 11, 2017 22:52
Subject:
need p5 to p6 help
Message ID:
d9856bf1-168f-8e56-af56-d21859715de6@zoho.com
Hi All,

I am not having a lot of lick converting this from
P5 to P6

P5:
$str !~ /[^A-Za-z0-9_]/

P6:
$ perl6 -e 'my $x="\t"; if !~ /[^A-Za-z0-9]/ {say "outside"} else {say 
"inside"};'

What am I doing wrong?

-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When we ask for advice, we are usually looking for an accomplice.
    --  Charles Varlet de La Grange
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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