Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[marto]: hopefully everyone had a good weekend
[Discipulus]: yees.. masonry, shaving of the ceiling (dunno if shaving is the right term..) 20hours in the weekend.. so veery good ;=)
[LanX]: yes I worked ...
[LanX]: ... and hope to get a free work day in compensation. :)
choroba went to a museum with the older children. The exhibition was called "American Indians".

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-02-19 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (261 votes). Check out past polls.

    Notices?