in reply to RegExp: pos management in global substitution
I would use two regexp: first to check if line starts with {name_a and a second to remove all unwanted param_* entries:
m/wanted name_a-line/ and s/unwanted parameters//g;
In Section
Seekers of Perl Wisdom