Using a Function in Perl

by Geethalakshmi 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;
}

Tagged in:

1165
like
0
dislike
0
mail
flag

You must LOGIN to add comments