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 ...
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (79 votes),