Tuesday, 16 July 2013

Scalar Variables in perl programming

Scalar 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.

0 comments:

Post a Comment