develooper Front page | perl.perl6.compiler | Postings from August 2010

[perl #77380] error message for negative range quantifier endpoint not precise enough

From:
Paweł Pabian
Date:
August 23, 2010 15:00
Subject:
[perl #77380] error message for negative range quantifier endpoint not precise enough
Message ID:
rt-3.6.HEAD-5116-1282581128-1212.77380-82-0@perl.org
# New Ticket Created by  Paweł Pabian 
# Please include the string:  [perl #77380]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77380 >


This code:
"" ~~ /m ** 1..-1 /

Gives following message:
"Only integers or '*' allowed as range quantifier endpoint"

I think that error message should say "positive integers" or "unsigned 
integers" because -1 IS also an integer.

I don't know what STD says about it, because eval on IRC seems to be currently 
down



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About