Declaration

In programming a declaration or a declare is a statement in programming that defines a variable, array, or programming statement and if applicable its value. Below are some examples of Perl declarations.

my $help;

This declares the $help variable.

my ($help, $support);

Declares both $help and $support variables in one line.

my $help = "Computer Hope";

Declares the $help variable and assigns the value "Computer Hope" to that variable.

Also see: Programming definitions