Loosely typed language

A programming language that does not require a variable to be defined. For example, Perl is a loosely typed language, you can declare a variable but do not need to specify the type of variable. In the below example the first line declares the $test variable that can be used as an integer or string.

my $test;
$test = 1; #Test variable is an integer.
$test = "hello"; #Test variable used as a string.

The opposite of a loosely typed languages is a strongly typed language, such as C.

Also see: Perl, Programming definitions