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

contains question

Thread Next
From:
ToddAndMargo
Date:
June 11, 2017 23:27
Subject:
contains question
Message ID:
422ba907-f2fa-cb68-b431-387c7a5a8826@zoho.com
Hi All,

perl6 -e 'my $x = "\t"; if $x !~~ /<[A..Z a..z 0..9]>/ {say "out"} else 
{say "in"}'

Would this be easier to do with $x.contains?  Or would it
be too worky?


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