cdherold has asked for the wisdom of the Perl Monks concerning the following question:
Dearest Monks,
How does one make it so that when variables in a MySQL cell are read into an html document they are interpreted instead of taken literally.
For instance,assume that $type_of_animal = giraffe. If the MySQL cell that contained the text 'I wish I were a $type_of_animal' were selected and posted as html it would print 'I wish I were a $type_of_animal', even though $type_of_animal had been defined earlier in the perl script.
How do I get the script to interpret the variable read from the database so that it will print out 'I wish I were a giraffe'?
thanks,
Chris Herold
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interpreting variables pulled from MySQL
by Errto (Vicar) on Jan 30, 2005 at 21:42 UTC | |
|
Re: Interpreting variables pulled from MySQL
by sh1tn (Priest) on Jan 30, 2005 at 21:31 UTC | |
|
Re: Interpreting variables pulled from MySQL
by ZlR (Chaplain) on Jan 30, 2005 at 21:38 UTC | |
|
Re: Interpreting variables pulled from MySQL
by borisz (Canon) on Jan 30, 2005 at 21:48 UTC |