keiusui has asked for the wisdom of the Perl Monks concerning the following question:
$s = "Numbers: 89, 90, 91, 180";
How would I replace all of the numbers in $s so that it's value becomes something more helpful:
$s = "Numbers: <a href=\"http://www.89.com\">89</a>, <a href=\"http:// +www.90.com\">90</a>, <a href=\"http://www.91.com\">91</a>, <a href=\" +http://www.180.com\">180</a>";
Any help would be gratefully appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replacing all strings of numbers with a link
by Zaxo (Archbishop) on Jun 21, 2006 at 01:13 UTC | |
by keiusui (Monk) on Jun 21, 2006 at 01:27 UTC |