in reply to Re: PHP primer for Perl hacker?
in thread PHP primer for Perl hacker?

If you search at, you will see that PHP has both print and require functions. It's worth pointing out that PHP's require is different from Perl's in a number of ways (PHP's require is more similar to Perl's EXPR form of do), but PHP's include is even more different. The closest thing PHP has to Perl's require is probably require_once.

Replies are listed 'Best First'.
Re^3: PHP primer for Perl hacker?
by bart (Canon) on Dec 15, 2004 at 23:55 UTC
    A big difference between Perl and PHP is that a syntax error is not a fatal error (it just interrupts loading the current file), while a doubly defined function, is. And yes, in case you're wondering: in perl, it's exactly the opposite.