in reply to help in matching

Hi,
range operator here means that e.g. [a-z] means one character in the range of a-z.
If you want your example to match, just omit the hyphen and it will match.

It is however not a good idea to set $_ as it is a magic variable ( see perlvar).
Regards,
svenXY