On Wed, Apr 25, 2012 at 3:18 PM, Mark Haney <ma...@abemblem.com> wrote:
> On 04/25/2012 02:54 PM, Matthew K wrote: > >> Mark, >> >> ----- Original Message ----- >> >>> From: Mark Haney<ma...@abemblem.com> >>> To: Perl Beginners<beginners@perl.org> >>> Cc: >>> Sent: Wednesday, April 25, 2012 11:51 AM >>> Subject: PERL CGI, HTML and PHP >>> >>> I've got, what I hope is a fairly simple problem that someone can point >>> me >>> to the best (or best practices anyway) way to handle it. >>> >>> >> >> You can hack together a working solution, but if you want the best >> practice way, then you should use only one server side scripting language. >> If you want the cleanest, most readable, most maintainable code then you >> really want to minimize the languages you use and keep everything simple. >> If you want to do this then you have two options. >> >> 1) Figure out how to do what you need in Perl (Not sure what this >> additional "feature set" you need is, but figuring out this in perl might >> be the easiest solution) >> >> 2) Refactor your perl code into php >> >> > Well, that's exactly what I've seen when googling this issue. I really, > really, (uh, really) don't want to unless absolutely necessary. > > As for the feature set I mentioned, I've been running into limitations > with using perl to populate dropdown boxes dynamically and such. Granted, > I'm sure there's a nice neat way to do it, but I couldn't find anything on > the interwebs to show me how, and since I know how to do it in PHP, it made > sense to combine the two. > > I understand the desire to 'keep with one scripting language', but what I > don't understand is why take a stand like that, yet continue to use > javascript with PHP and ASP pages. Seems to me, that in the right instance > combining the two can be very powerful. Personally, I've found the > flexibility in report manipulation of perl to be better than anything else > I've used, so I plan on keeping it for reports and using PHP for the front > end/UI stuff. > > FWIW, I've never seen an entire website built completely in perl. Doesn't > mean there aren't any, but they must be very few and far between. (No > offense to the perl crowd, just an observation.) > > > > -- > > Mark Haney > Software Developer/Consultant > AB Emblem > ma...@abemblem.com > Linux marius.homelinux 3.3.1-5.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/ > > > Faced with a similar question, the Perl Monks advised doing these sorts of UI pieces on the client-side with Javascript: http://www.perlmonks.org/?node_id=765613