in reply to
Perl Multiple If Conditions with Match Variables
Just as an additional comment to clarify your error: $1, $2, ..., will be populated only after matches within the same regex, not in multiple successive regexes.
Comment on
Re: Perl Multiple If Conditions with Match Variables
In Section
Seekers of Perl Wisdom