Variable types

$string = 'hello world';
$int = 1;
$float = 1.0;
$undef;

%hash = (a=>1, b=>2);
@array = (1, 2, 3, 4);

sub &subroutine {..};
   # ?

In perl, variables are strongly typed. A $scalar is always scalar.

Python only has one type of variable.