Help for this page

Select Code to Download


  1. or download this
    my (@a1,@a2) = ([1,2,3],[3,2,1]);
    
  2. or download this
    my (@a1,@a2) = ([1,2,3,4,5,6,7],[7,6,5,4,3,2,1]);
    print Dumper(@a1), Dumper(@a2);
    
  3. or download this
    $VAR1 = [
              1,
    ...
              2,
              1
            ];
    
  4. or download this
    print "a1\n", Dumper(@a1), "a2\n", Dumper(@a2);
    
  5. or download this
    my ( @dirs, @files)= 
       ( @{-d}, @{-f} ) for (readdir DIR);