Skip to content

Instantly share code, notes, and snippets.

@tryperl
Created March 26, 2013 22:27
Show Gist options
  • Save tryperl/5249899 to your computer and use it in GitHub Desktop.
Save tryperl/5249899 to your computer and use it in GitHub Desktop.
Created by www.tryperl.com.
#Created by tryperl.com
use strict;
use warnings;
print "Go Ahead and edit me!";
print "Once you are done editing, click SAVE to save changes :D";
# print <>; #you can use the STDIN to put data into your program
my @arr = ('this','is','a','line','of','text');
print "\n\n";
foreach (@arr) {
print "$_ ";
}
print "\n";
@arr = sort {$a cmp $b} @arr;
foreach (@arr) {
print "$_ ";
}
print "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment