http://www.perlmonks.org?node_id=1016696


in reply to Re^4: How to store matched $1 values one by one to array?
in thread How to store matched $1 values one by one to array?

Remove the second my before $agent_value. It resets its value. Also, turn on warnings to be warned against the practice of redeclaring a variable.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ