PDA

View Full Version : Dreamweaver and Perl


mkarmali
04-16-2010, 11:17 PM
Hi:

Can I do something like this:

-------------------------------------------
#!/usr/local/bin/perl -w
sub Show_HTML {
print $query->header;
my $html = "";
$html .= <<EOT;

<<---------copy and paste entire Dreamweaver page file here

EOT
return $html;
}


------------------------------------------

and put this file in the cgi-bin directory?

Thanks.

davidj
04-20-2010, 11:28 AM
as long as its valid PERL then you can

Not really into PERL but its returning a string and if you can return a string then you can return HTML.

It will be a Mare to support if you intend to serve an entire site this way though.

I pity the developer who inherits this

mkarmali
04-20-2010, 07:31 PM
Thanks a lot.