Update: It is tomorrow now and I'm still neck deep in this $work deadline thing. Sorry.
Update: Another day passed; thanks to both Parsec and Catalyst I should be able to survive this. But I'm missing all the interesting p6-on-p5 and perl5 typecheck fun.
Update: It's been a week; $work and moving has been throughly consuming. Maybe I'll catch up the rapid movements for p6-on-p5 this weekend, maybe not. Sigh.
embedded perl (Score:1)
The Perl code can be put within code
markup tags "<code>" "</code>" similar to D. This wo
Re:embedded perl (Score:1)
Re:embedded perl (Score:1)
So you could just write:
say $headerstuff;
say "
<html>
<head>
<title>Perl6 Test</title>
</head>
<body>
{ say '<p>Hello World</p>' }
</body>
</html>
";
or something like that. (Actually, it may work better without 'say' inside the string.)
Re:embedded perl (Score:1)
It would still be interesting if there an option
in Perl 5 or 6 to parse html and process the code
inside a tag and display the html and run the code. This would be an integrated perl option not provided as a separate module.
This is like a Perl version of PHP and would render PHP obsolete.
Perl 6 could do it this way.
ie.
% more perl6.html
<html>
<head>
<title>Perl6 Test</title>
</head>
Re:embedded perl (Score:1)
but there are those who would meet in a dark room and conspire to dethrone a king or remove a wall.
As a further extension
% more perl.program.html
<html>
<p>This is the way to barbosa</p>
<code>
sub combinations returns Array (@list is rw) {
return () unless @list.elems;
my @ans;
for 1
Re:embedded perl (Score:1)
PerlHP (Score:1)