Consider the following program code: package Dog; $string = Walk the dog."; if($string eq "Walk the dog.") { package Cat; $string = "Pet the cat."; print("$string\n"); } print ("$string\n"); What is the result of executing this program code?"

🎲 Try a Random Question  |  Total Questions in Quiz: 32  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
1D0-437: CIW Perl Specialist Exam — practice the complete quiz, review flashcards, or try a random question.


Consider the following program code: package Dog; $string = Walk the dog."; if($string eq "Walk the dog.") { package Cat; $string = "Pet the cat."; print("$string\n"); } print ("$string\n"); What is the result of executing this program code?"