Numbers
- By default, computed with double-precision floating-point
values
29/4 == 7.25 ,
not 7
- You can force integer math with the use integer; pragma
- Can be expressed in decimal, hexadecimal or octal
255 == 0377 == 0xFF
- Numbers starting with a zero are always seen as octal.
Strings
- Can contain any data, even the null character (0x00)
- Can be arbitrarily large
- Perl keeps track of size internally
|
|
|