Please write a simple Perl script following the instructions below.
Write a Perl program that reads in an arbitrary number of strings from the command line and displays them sorted alphabetically.
Here is an example:
type:
perl mySorter.pl spencer able delta
see:
able delta spencer
type:
perl mySorter.pl
see:
Invalid command line arguments to program. Please supply two or more strings to sort.
Optional command line switch
type:
perl mySorter.pl -r spencer able delta
or
perl mySorter.pl–reverse spencer able delta
See:
spencer delta able
NOTE: the command line switch (-r or –reverse) can be present anywhere in the command e.g. perl mySorter.pl spencer able delta –reverse should work to.
Did you know: that the single dash followed by a letter or the double dash followed by the entire word is a standard convention?
You will be graded on this assignment.
Criteria:
Exceptional work must include one or more of the following:
Follow the instructions carefully! Points off for failng to do this.
** Submit a zip or tar.gz file as an attachment. Don’t just paste in text. Do not submit compressed files in any other format like .rar **

WhatsApp us