Explain what is the scalar data and scalar variables in Perl?
Answer Posted / Nandini Gupta
Scalar data represents a single item (such as an integer, floating-point number, string, or reference) in Perl. A scalar variable is a named storage location that holds scalar data and can be declared using the my keyword. For example: my $scalar_var = 'Hello';
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is perl? What is the basic command to print a string in perl?
There is no strict data types in perl unlike in other high level languages like Java so wouldn't that be a problem if a code in perl is to be a written by a big team of 20+ members ?"
How do find the length of an array?
How to connect to SQL server through Perl?