Perl Programming Question:
Download Questions PDF

What are scalar data and scalar variables?

Answer:

Perl has a flexible concept of data types. Scalar means a single thing, like a number or string. So the Java concept of int, float, double and string equals to Perl's scalar in concept and the numbers and strings are exchangeable. Scalar variable is a Perl variable that is used to store scalar data. It uses a dollar sign $ and followed by one or more alphanumeric characters or underscores. It is case sensitive.

Download Perl Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How to turn on Perl warnings? Why is that important?Why should I use the -w argument with my Perl programs?