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?
$agent_value is declared two times.The substitution should not be used with my.Just remove the second lexical declaration and the code works.
Also, I recommend to use strict and warnings.
'warnings' says: "my" variable $agent_value masks earlier declaration in same scope at ...
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (260 votes),