On Tue, 2002-05-14 at 20:13, Larry Wall wrote:

> It's unlikely that {n,m} will still have that meaning in Perl 6.  Maybe we'll
> have something like this:
> 
>     Perl 5    Perl 6
>     {1,3}     <1..3>
>     {3}               <3>
>     {3,}      <3+>
>     {0,3}     <3->
> 
> Then again, maybe not...

Hopefully there will be some replacement. I can't count the number of
times I've relied on things like:

    $b = qr/\d{1,3}/;
    if (@ip = ($addr =~ /($b)\.($b)\.($b)\.($b)/)) {
        die "$0: \"$addr\": bad IP\n" if grep {$_>255} @ip;
        print("0x",(map {sprintf "%02x", $_} @ip),"\n");
    } else {
        die "$0: \"$addr\" is not an IP address\n";
    }

It would be a shame to loose that.


Reply via email to