Built-in data types (partial list)
Perl 5 has few basic data types:
- Scalar (numbers, strings, references)
- List
- Hash
- Subroutine
- Filehandle
Perl 6 has quite a few more:
- Bit, Int, Str, Num, Complex, Bool, Exception, Code, Block,
List, Range, Set, Bag, Junction, Pair, Blob
- Scalar, Array, Hash, IO, Sub, Method, Macro, Regex, Match,
Module, Class, Role, Grammar, Any, Object