On 04/26/2012 07:22 AM, Michael Rasmussen wrote:


Again, you haven't described why Perl can't create the same HTML the PHP does.




Obviously, I didn't explain myself quite well enough. Let me try again. I've got a web app I'm building for the company I work for. It was initially started by an intern in pure perl and was more or less nothing but some CGI to dump data into a DB and pull data out of that DB. The perl code generated basic HTML tables and output and nothing else.

Keep in mind here that I've used perl quite a bit, but /never/ in the context of actually building a website. Not from the ground up. I have built them in C#, ASP, and PHP, so I'm no n00b to web design. Just when using perl.

I found, that with researching how to do things in perl (like dynamic dropdown boxes) I was having trouble finding resources that worked for me. At that point, I moved to PHP since I knew how to do things with it.

That brings me to my problem. I have these reports already built in perl, and all I want is something like this:

PHP/HTML form -> PERL CGI -> PHP/HTML

Essentially I want perl to do the grunt work and output it to my PHP framework. The only option I found that works (mostly) is to output the report into a file and then include it in the PHP code. The only issue there is that I can't inject PHP code into the CGI like I do with straight HTML (like print "<table></table>").

I thought this would have been a fairly simple question to ask, like I've overlooked the obvious and needed it pointed out. Ah well.

At this point, I have no problem at all with ripping out what PHP I've done for straight up perl if I can find the resources that can walk me through the design and framework setup. I noticed replies about perl templates and I'll look into them now.

My apologies for sounding like a troll. It was a question I thought had a quick answer. You live and learn.




--

Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.2-6.fc16.x86_64 GNU/Linux

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to