Perl Variables  «Prev  Next»

Using Perl push Function - Perl Exercise

Objective:Use the push function to add a string to an array.
Instructions
Write a program that starts with an array and prompts you for a string. Then push the new string onto the array and print the resulting array. Paste your program code into the text area below, and click the Submit button when you are finished.