Perl Script : Local variables

Local variables
The keyword my creates a new local variable. The following subroutine createsa local variable named params and assigns a copy of the parameters to it.
sub echo {
my @params = @_;
print "@params\n";
}

No comments:

Post a Comment