Title: using {3-8} instead of {3,8} doesn't produce even a warning?

# run using e.g. echo hello | perl this-file

# Why doesn't perl produce a warning from {3-8} ?  This seems
# to be a syntax error.  It surely is not the way to match strings of length 3 - 8.  It
# should be {3,8} .

while (<>) {
    if (/[a-z]{3-8}/) {
        print;
    }
}

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to