Numeric Literals
Integer (ex: 111)
Floating point (1.11)
Hex (0x111)
Octal (0111)
Scientific (1.11E3)
While it’s important to know what numeric types Perl supports, it’s also important to understand that Perl doesn’t “treat” these types differently. In fact, all numbers (and strings) are considered to be of one type in Perl: scalar.