How do write a PERL program that reads strings & sorts?

Mz Lani

New member
The program needs to reads in an arbitrary number of strings from the command line and displays them sorted alphabetically.

Also, Provide a command line switch that controls the order of sorting (ascending [a-z], descending [z-a])
 
Back
Top