pseudosocrates has asked for the wisdom of the Perl Monks concerning the following question:
This is where I'm stuck - I want to use @array to replace the text back between the tags randomly. Thanks for any help, hope I was clear.$_ = $content; #content holds the html while (m@href=\"\./\d+\.html\">(.+)</a>@g) {push (@array, $1);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex partial substitution from array
by sauoq (Abbot) on Dec 15, 2004 at 18:28 UTC | |
by pseudosocrates (Sexton) on Dec 15, 2004 at 18:35 UTC | |
|
Re: Regex partial substitution from array
by Stevie-O (Friar) on Dec 15, 2004 at 19:54 UTC |