in reply to Re^2: How to store matched $1 values one by one to array?
in thread How to store matched $1 values one by one to array?
Well, it's not an inconvenience, but that does now highlight where you're going wrong.
Declare your array outside of whatever loop iterates over your logfile and replace my @array=$agent_id; with a push statement, as I indicated.
-- Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to store matched $1 values one by one to array?
by rekhasri (Initiate) on Feb 02, 2013 at 09:15 UTC | |
by trizen (Hermit) on Feb 02, 2013 at 11:12 UTC | |
by choroba (Cardinal) on Feb 02, 2013 at 11:12 UTC |
In Section
Seekers of Perl Wisdom