Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement