Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #use warnings;
    
  2. or download this
    use strict;
    
  3. or download this
    open my $graph, '<', '2211.txt' or
      die "Can't open `2211.txt': $!\n";
    
  4. or download this
    while (<GRAPH>)
    {
            $a1 = push(@a1, $1);
            $a2 = push(@a2, $2);
        print @a1, @a2;
    }
    
  5. or download this
    while (<GRAPH>)
    {
    ...
            $a2 = $2;
            print $a1, $a2;
    }
    
  6. or download this
    my (@a1, @a2);
    while (<GRAPH>)
    ...
            push @a2, $2;
    }
    print @a1, @a2;