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 ...
Non-existent; I don't have TV
Non-existent; my TV doesn't have/need a remote
Under my control; I watch alone
Under the control of whoever shouts loudest
Under the control of whoever gets it first
One of many, and the TV has a mind of its own
Results (566 votes),