Skip to content

Instantly share code, notes, and snippets.

View iFlyCai's full-sized avatar

iFlyCai iFlyCai

View GitHub Profile
@iFlyCai
iFlyCai / bgpdump2edge.pl
Last active August 29, 2015 14:13 — forked from aojea/bgpdump2edge.pl
Perl script to generate a edge list from a bgpdump output
#!/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>) {