Differentiate between c++ and perl.
Answer / Vishal Rastogi
C++ is a statically typed, compiled programming language that supports object-oriented and generic programming. Perl is a dynamic, interpreted programming language focused on easy data manipulation and web scripting.n
1. Typing: C++ is statically typed, which means variables are defined with their data type at compile time. Perl is dynamically typed, which means variables don't have an explicit data type until they are assigned a value.
2. Compilation: C++ code is compiled before execution. Perl code is interpreted during runtime.
3. OOP: Both support object-oriented programming, but C++ has more advanced features and strict syntax rules compared to Perl.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many loop control keywords are there in perl?
What are arrays in perl?
How do I print the entire contents of an array with Perl?
How would you replace a char in string and how do you store the number of replacements?
What are different data types that perl supports. Elaborate on them.
What is the difference between module and package?
Explain goto name?
What does next statement do in perl?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
What purpose does each of the following serve: -w, strict, - T ?
What is the difference between perl array and perl hash?