Nano's Blog

01/05/2010

Scalar variables

Filed under: programming — Tags: — nano @ 08:42

Scalar variable names begin with a dollar sign followed by what we’ll call a Perl identifier: a letter or underscore, and then possible more letters, or digits, or underscores.

Upper and lowercase letters are distinct. Can’t start with a digit.

A scalar variable can hold only one value. But other types of variables, such as arrays and hashes, may hold may values.

- from Learning Perl 5E

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress