Skip to content

Instantly share code, notes, and snippets.

@HarizNaam
Created March 29, 2016 00:35
#!/usr/bin/perl -w
while(<STDIN>) {
chomp;
@words = split;
foreach $w (@words) {
$key = $w;
$value = "1";
print "$key\t$value\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment