Initial commit.

This commit is contained in:
2021-05-24 22:18:33 +03:00
commit e2954d55f4
3701 changed files with 330017 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/perl
use Geo::IP;
my $gi = Geo::IP->new(GEOIP_STANDARD);
$| = 1;
while(<>)
{
chomp($_);
$country = $gi->country_code_by_addr($_);
if ($country eq '')
{
$country = '?';
}
print "$_ ($country)\n";
}

View File

@@ -0,0 +1,10 @@
#!/usr/bin/perl
# disable I/O buffering (this is essential)
$| = 1;
while(<>)
{
# add 'bla' in front of the string
print "bla".$_;
}