DEVFYI - Developer Resource - FYI

What are scalar data and scalar variables?

Perl Questions and Answers


(Continued from previous question...)

What are scalar data and scalar variables?

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 aphanumeric characters or underscores. It is case sensitive.

(Continued on next question...)

Other Interview Questions