in reply to
Dynamic HTML via MySQL
Well first of all you want
$html = $row[0]
This will get the 0th element of the @row array.
Then, if I am reading your request correctly, you do:
$html =~ s/\$name/$name/g;
Hope that helps.
Comment on
Re: Dynamic HTML via MySQL
Select
or
Download
Code
Replies are listed 'Best First'.
Re: Re: Dynamic HTML via MySQL
by
Anthanos
(Initiate)
on Feb 21, 2001 at 04:43 UTC
Thank you! the substitution works perfectly, and I am going to look into a more flexible templating solution.
[reply]
In Section
Seekers of Perl Wisdom