Next: Defining Scalar Variables
Up: Variables
Previous: Variables
Scalar variables can be
either a number or a string -- What might seem confusing at first sight
actually makes a lot of sense and can make programming a lot easier.
- You can use variable types almost interchangeably. Numbers first
then strings later
- Numbers are numbers -- there is no integer type per se. Perl
regards all numbers a floating point numbers for calculations etc.
dave@cs.cf.ac.uk