Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- Perl within HTML


janharders - 8:52 pm on Mar 17, 2011 (gmt 0)


Yes, but not with your standard apache environment. You could use something like the Mason suite of modules that's allow you to go with
<ul>
% while (my ($key,$value) = each(%ENV)) {
<li>
<b><% $key %></b>: <% $value %>
</li>
% }
</ul>

or
Dear <% $name %>: We will come to your house at <% $address %> in the
fair city of <% $city %> to deliver your $<% $amount %> dollar prize!

The answer is <% ($y+8) % 2 %>.

You are <% $age < 18 ? 'not' : '' %> permitted to enter this site.


and more. Is that what you need?


Thread source:: http://www.webmasterworld.com/perl/4283003.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com