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 ...
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (633 votes),