This is PerlMonks "Mobile"

Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  


in reply to Looking for alternative syntax for assigning variables based on regex matches

"There's More Than One Way To Do It." – Tim Toady.

However you choose to do it, make your code easy for a human reader to understand, and easy to change in one small, targeted, "git" commit. What you've written is clear enough, and I would just keep doing it.
  • Comment on Re: Looking for alternative syntax for assigning variables based on regex matches