Scripting
>>
Perl
>>
How to declare and use functions
$x = 7; $result = PowerOf2($x); sub PowerOf2 { my $var = shift; $r = $var * $var; return $r; }
Please enable JavaScript to view the
comments powered by Disqus.