This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Read the bgpdump output and generate a edge list with two columns source destination | |
use strict; | |
use warnings; | |
my $filename = $ARGV[0]; # store the 1st argument into the variable | |
open FILE, '<', $filename or die $!; # open the file using lexically scoped filehandle | |
while (<FILE>) { |