Perl Programming Question:

What are scalar data and scalar variables?

Tweet Share WhatsApp

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 PDF Read All 46 Perl Programming Questions
Previous QuestionNext Question
How to turn on Perl warnings? Why is that important?Why should I use the -w argument with my Perl programs?