in reply to warning using a regexp

I get this warning
If you get a warning in perl and are unsure of what it means check out man perldiag for more information
false [] range ""%s"" in regexp
(W regexp) A character class range must start and end at a literal character, not another character class like "\d" or "[:alpha:]". The "-" in your false range is interpreted as a literal "-". Consider quoting the "-", "\-". See the perlre manpage.

HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: warning using a regexp
by Sihal (Pilgrim) on Jan 10, 2003 at 11:18 UTC
    I looked in perlre, but forgot about perldiag, thanx for the advice