1. Home
  2. Computing & Technology
  3. Perl

Loosely Typed

From About.com

Definition: A loosely typed programming languages is typically one that does not require the type of a variable to be explicitly stated. Perl is a loosely typed language. You can put any type of data into a variable and perl will interpret it based on context:
$myVariable = 25;
$myVariable = "A String.";
C is not a loosely typed language (see strongly typed). You must declare the variable type before using it:
int myVariable;
myVariable = 25;
Explore Perl
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Perl
  4. Getting Started
  5. Programming Glossary
  6. Loosely Typed

©2009 About.com, a part of The New York Times Company.

All rights reserved.