Using a Function in Perl
by Geethalakshmi[ Edit ] 2010-09-17 14:16:30
Using a Function in Perl
You call a subroutine by using the subroutine name followed by '( )'s. Examples...
subname();
$a = 3 + subname();
for ( $x = subname1(); $x < subname2(); $x += subname3() ) {
statements;
}