in reply to
How to use Perl in web pages?
Okay, I don't expect my opinion to be popular, but I really think you should stick with PHP and least for a while longer.
Check advanced PHP frameworks like http://cakephp.org/ or http://www.symfony-project.org/.
Just moving to Perl, won't make web-develpoment easier for you. You need to use a Perl Framework, like Template-Toolkit , Mason, CGI-Application and Catalyst, to really gain an edge.
I am learning how to use Perl for web-development, but this mainly because I like Perl and like learning Perl and I love its community, so I am biased.
To conclude, I don't think PHP is your problem. And I do think you have a huge gap in your knowledge about web-framework, so learn about web-frameworks, before switching your language