Re: what is difference between php and perl
| From: | Curt Zirzow | Date: | Fri, 23 Jul 2004 04:37:56 +0000 |
| Subject: | Re: what is difference between php and perl | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191606@lists.php.net to get a copy of this message | ||
* Thus wrote Dan Joseph:
> Hi,
>
> Or...
>
> #!/usr/bin/perl
>
> Use CGI;
>
> $q = new CGI;
>
> if ( $q->param_url("var") )
> {
> Print $q->param_url("var")
> }
Excellent point! I guess my point with my random perl/php code
snipplet was that php out of the box is much nicer than perl is as
a web language. Simply re-enforcing php's foundation as a web
language.
>
> Really, if you look at a lot of functions in PHP and Perl, they mimic each
> other, and other languages (C, etc..).. It's a personal preference choice.
> PHP was designed for dynamic web pages, Perl was designed to be a unix
> programming language that evolved.
Well said, and as the languages are evolving, they both can serve
as decent solutions for either web or (shell) scripting.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!