1. Home
  2. Computing & Technology
  3. Perl

Loosely Typed

From , former About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.