Re: Test not working so well

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
> On Sat, Dec 9, 2023 at 18:22 ToddAndMargo via perl6-users 
> <[email protected] <mailto:[email protected]>> wrote:
> 
>     Hi All,
> 
>     What am I doing wrong here?
> 
> 
>     my $x="abc2def"; say  $x=/ ^ <[0..9]> ** 7 $ /;
>     / ^ <[0..9]> ** 7 $ /
> 
>     [0] > my $x="abc2def"; say  $x=/ ^ <[l..z]> ** 7 $ /;
>     / ^ <[l..z]> ** 7 $ /
> 
>     [0] >       my $x="abc2def"; say  $x~~/ ^ <[0..9]> ** 7 $ /;
>     Nil
> 
>     [0] > my $x="abc2def"; say  $x~~/ ^ <[l..z]> ** 7 $ /;
>     Nil
> 
> 
>     I am looking for a True or a False.
> 
>     Many thanks,
>     -T

On 12/9/23 17:44, Tom Browder wrote:
 > Try: say so $=....
 >

Would you give me a quick example?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.