Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my @array = ();
    ...
    $array[2] = [2];
    @array = sort { $$a[0] cmp $$b[0]} @array;
    print Dumper \@array;
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    @courselist = sort {$$a[0] cmp $$b[0] or $$a[1] cmp $$b[1]} @courselis
    +t;
    print Dumper(\@courselist);