Test not working so well
[email protected] (ToddAndMargo via perl6-users)
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
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