Created
February 19, 2019 16:13
-
-
Save anonur/7ac60ddef9ba387f5faaa6193706af77 to your computer and use it in GitHub Desktop.
Just a little sorting program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| #sort_names.plx | |
| use warnings; | |
| use strict; | |
| my @unsorted = qw(Onur Aylin Ayvaz Ferrin); | |
| print "Unsorted: @unsorted\n"; | |
| my @sorted = sort @unsorted; #sort function puts the words in an alphabetical order. | |
| print "Sorted: @sorted\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment