Sort in action
#!/usr/bin/perl use warnings; use strict; my @unsorted = qw(Co Cl Co Cr Co); print "Unsorted: @unsorted\n"; my @sorted = sort @unsorted; print "Sorted: @sorted\n";