Perl Variables
A variable is a symbolic name for a location in memory. A programming language usually defines the types of variables it will allow. For example, in C some types include int, char, float, and double. Java allows similar types. In Perl the situation is a little different.
Perl distinguishes between three different data types. A scalar represents a single value. An array represents an ordered collection of these values indexed from 0. A hash represents an unordered collection of scalars whose values can be indexed by their key. Perl uses punctuation to distinguish between these three kinds of variables.
Perl also differs from many programming languages in that the programmer does not have to define a variable before using it.
Scalar ...
Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.