You probably need to put the eol meta character at the end of your regex, something like this:
m/ \d{5} # exactly five digits $ # end of line /x; # allow comments and whitespace
-- Hofmator
In reply to Re: Re: Pattern matching of the type?
by Hofmator
in thread Pattern matching of the type?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |