in reply to Re^2: How to eval an array element in regex's substitution
in thread How to eval an array element in regex's substitution
Maybe you think it simply.
The $s is dynamic.It is maybe "[2][1]" or maybe "[9] [8] [3]",
. I only wanna to replace the [xx]with a fix array's element.
But the rule is , the [xx] is index of the array!
The $s is dynamic.It is maybe "[2][1]" or maybe "[9] [8] [3]",
. I only wanna to replace the [xx]with a fix array's element.
But the rule is , the [xx] is index of the array!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to eval an array element in regex's substitution
by aquarium (Curate) on Oct 27, 2010 at 21:52 UTC |
In Section
Seekers of Perl Wisdom