Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: How to store matched $1 values one by one to array?

by trizen (Friar)
on Feb 02, 2013 at 11:12 UTC ( #1016695=note: print w/ replies, xml ) Need Help??


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 ...


Comment on Re^5: How to store matched $1 values one by one to array?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016695]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-07-31 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (245 votes), past polls