In: Computer Science
4. Create an array with the values “Andrew,” “Andy,” and “Kaufman” (without the quotes). Write a program that prints Andrew “Andy” Kaufman in perl.
Code:
@names=("Andrew","Andy","Kaufman");
print "$names[0] \"$names[1]\" $names[2]";
Screenshots:
Here to print double quotes we need to use \ which is an escape character.