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