What will be the output of the following code snippet?
sub skipper_greets {
my $person = shift;
print "Skipper: Hi there, $Perl!\n";
}
sub gilligan_greets {
my $person = shift;
if ($person eq "Skipper") {
print "Master: Sir, yes, $Perl!\n"; } else {
print "Master: Hi, $Perl!\n"; }
}
skipper_greets("Master"); gilligan_greets("Skipper");
Correct Answer:
Skipper: Hi there, !
Master: Sir, yes, !
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Perl MCQ Questions