NAME

MaxMind::DB::Writer::FromTextFile - Create MaxMind DB from text file

SYNOPSIS

  use MaxMind::DB::Writer::FromTextFile;
  mmdb_create($input_filename, $output_mmdb_filename);

INPUT FILE FORMAT

Input text file should looks like below.

  39.111.254.0/24 "hongkong|hongkong"
  39.111.255.0/24 "abroad|abroad"
  39.112.0.0/12 "abroad|abroad"
  39.128.0.0/11 "beijing|CM"
  39.160.0.0/12 "beijing|CM"
  39.176.0.0/14 "beijing|CM"
  39.180.0.0/14 "zhejiang|CM"
  39.184.0.0/13 "zhejiang|CM"
  39.192.0.0/10 "abroad|abroad"
  40.0.0.0/9 "abroad|USA"

EXPORT

None by default.

SEE ALSO

MaxMind::DB::Reader, MaxMind::DB::Reader::XS, MaxMind::DB::Writer

AUTHOR

Chen Gang, <yikuyiku.com@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2014 by Chen Gang

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.2 or, at your option, any later version of Perl 5 you may have available.