Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    close $infile;
    
    print Dumper(\%students);
    
  2. or download this
    $VAR1 = {
              'Smith Tom' => {
    ...
                                'f4' => 'Fr'
                              }
            };
    
  3. or download this
    for my $student (sort {$students{$a}{id} <=> $students{$b}{id}} keys %
    +students) {
        print "$student => $students{$student}{id}\n";
    }