I see nothing wrong with learning both, they are both useful in there own way, however if you want to solely use something for web development I would prefer PHP over Perl, I find Perl to be more suited now to PC/Network administrative tasks. Also try not to start another PHP vs 'x' language there are tons scattered not just here but on the web also.