Discussion Locked

Complex expressions inside strings

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Expand expressions inside strings:

The April 22, Perl TechMail discusses the creation of complex expressions inside strings. Have you used Perl to create complex expressions inside strings and print their values as suggested by this tip? Do you have an application where such a technique can be implemented?

1 reply

by chanio

Hi, may be there are more practical ways of separating html text from the code, but I use to do this thing and it works well...
I use a scalar to put all the html text by calling a sub that contains a HERE assignment to the scalar variable.
So, while the html page may change the content of the variables, the page displays the same. I just have to change the variables that I use inside the HERE and call the sub again to load the scalar and display the page again.
Perl keeps on amazing me especially nowadays that there are so many languages to use at the WWW (ASP, PHP, JSP, etc.)!

This discussion is closed to new replies.