Congratulations, Perl 6 developers. You are beginning to catch up with Django. (See http://docs.djangoproject.com/en/dev/intro/tutorial03/ if you think I'm being sarcastic.) Once upon a time, Perl was the de facto language for web development. Then there was a bit of falling out between the web-centric folks and the server-centric folks; resulting in PHP. Perl, as a language for web-development, never really recovere…
PHP was its own, independent effort. It doesn't really have anything to do with Perl. People migrated to it because it was easier to deploy (just put it on the web server), and probably easier to write for many people.
It doesn't NOW have anything to do with Perl... but it's pretty easy to see some of that history in the code.