what are the differences between php and perl



what are the differences between php and perl..

Answer / Swati Verma

PHP and Perl are both programming languages used for web development, but they have several key differences:
1. Syntax:n - PHP uses curly braces {} to define blocks of code, while Perl uses indentation.
2. Development Style:n - PHP is an interpreted language with a looser syntax, making it easier for beginners to learn.n - Perl is more terse and complex, focusing on efficiency and flexibility.
3. Built-in Functionality:n - PHP provides built-in support for various web-related features such as sessions, cookies, and form handling.n - Perl does not have built-in support for these features but can use modules like CGI to accomplish similar tasks.
4. Community Support:n - PHP has a large and active community with extensive documentation and resources available.n - While Perl also has a strong community, it may be less accessible for beginners.
5. Popularity:n - PHP is more widely used in web development due to its ease of use and integration with popular content management systems (CMS) like WordPress.n - Perl is still used in various applications but is less common in the web development space.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

List types of array are available in php?

1 Answers  


What is php full form?

1 Answers  


Explain what does the unset() function means?

1 Answers  


What does the unlink() function mean?

1 Answers  


How many escape sequences are recognized in double-quoted strings?

1 Answers  


What is static method php?

1 Answers  


What is the meaning of a persistent cookie?

1 Answers  


Can a trait extend a class php?

1 Answers  


How many types of php are there?

1 Answers  


How can we send mail using JavaScript?

13 Answers   dwise, iScope,


Is it possible to get the screen resolution and like with php?

1 Answers  


How you can update memcached when you make changes to php?

1 Answers  


Categories