Help for this page

Select Code to Download


  1. or download this
    my @a = qw(1 2 3);
    my @b = qw(4 5 6);
    ...
        print $_ for @{ $aref };
        print "\n";
    }
    
  2. or download this
    123
    456
    789
    
  3. or download this
    my %hash = ( a => 1, b => 2, c => 3 );
    print "$hash{ a }, $hash{ b }, $hash{ c }\n";
    
    #output: 1, 2, 3
    
  4. or download this
    # define the list of students per each class
    
    ...
    # the reference)
    
    my @students = @{ $school{ room2 } };