#!/usr/bin/perl
#Creates an array of boy students
@boyStudents = ("Sam", "Mike", "Steve", "Joe", "Jack");
#Creates an array of girl students
@girlStudents= ("Samantha", "Susan", "Margaret", "Josephine");
#Combines the arrays of boyStudents and girlStudents as studentNames
@studentNames = (@boyStudents, @girlStudents);
print "The names of the students in the class are = @studentNames\n";
Comments