You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
238 B
Perl
16 lines
238 B
Perl
5 years ago
|
sub printifOK
|
||
|
{
|
||
|
local $localvalue = $value;
|
||
|
|
||
|
if ($localvalue > 10 ) {
|
||
|
print "Value is $value.\n";
|
||
|
} else {
|
||
|
print "Value is too small.\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$value = 10;
|
||
|
printifOK;
|
||
|
|
||
|
$value = 12;
|
||
|
printifOK;
|