You seem to be talking about doing what I would refer to as an exact match versus a pattern match. This information would IMHO be best stored as a separate piece of data in your data structure.
Give a man a fish: <%-{-{-{-<
In reply to Re^5: how to use string RE (against $_ and capture)
by AnomalousMonk
in thread how to use string RE (against $_ and capture)
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |