Pretty much what it's telling you. Instead of the numbers in braces, it's the ** operator with a range after it: \d ** 1..4 (Remember that spaces do nothing in a P6 regex, so you can use them for readability or to separate the range from what follows, etc.)
On Thu, May 10, 2018 at 11:56 PM, ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > I am trying to convert this over from Perl5: > > P5: > $dir_entry =~ /.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*${Extension}/; > > P6: > $dir_entry ~~ m/.*?(\d{1,4}\D\d{1,4}\D\d{1,4}).*{$Extension}/; > > > $ perl6 -c GetUpdates.pl6 > ===SORRY!=== > Unsupported use of {N,M} as general quantifier; in Perl 6 please use ** > N..M (or ** N..*) > at /home/linuxutil/GetUpdates.pl6:425 > ------> $dir_entry ~~ m/.*?(\d{1,4}⏏\D\d{1,4}\D\d{1,4 > }).*{$Extension}/; > > > What am I doing wrong? > > > Many thanks, > -T > -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net