Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by trizen (Hermit)
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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016695]
help
Chatterbox?
dbander snorts
LanX Gesundheit! :)
talexb wonders about dividing developers in those born before the Unix timestamp of zero .. and after. Spoiler: I'm before.
chacham remebers I am a mad scientist
[stevieb]: talexb I'm after by a few years, but we can still be friends because you live in my hometown ;)
[LanX]: White House

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-08-18 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (302 votes). Check out past polls.

    Notices?