in reply to multiple matches per line *AND* multiple capture groups per match
In the assignment
(@complete_url, @filename) = ($_ =~ /$test_regexp/g)
all matches will be assigned to the array @complete_url. I would expect that you find the urls and filenames both in the array. So you have everything in one array and need to split it into two afterwards.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: multiple matches per line *AND* multiple capture groups per match
by educated_foo (Vicar) on Dec 21, 2013 at 23:25 UTC | |
by Special_K (Monk) on Dec 22, 2013 at 01:41 UTC | |
Re^2: multiple matches per line *AND* multiple capture groups per match
by Special_K (Monk) on Dec 22, 2013 at 01:39 UTC | |
by kcott (Archbishop) on Dec 22, 2013 at 05:48 UTC |
In Section
Seekers of Perl Wisdom