MaxMind::DB::Writer::FromTextFile - Create MaxMind DB from text file
use MaxMind::DB::Writer::FromTextFile; mmdb_create($input_filename, $output_mmdb_filename);
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"
None by default.
MaxMind::DB::Reader, MaxMind::DB::Reader::XS, MaxMind::DB::Writer
Chen Gang, <yikuyiku.com@gmail.com>
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.
To install MaxMind::DB::Writer::FromTextFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MaxMind::DB::Writer::FromTextFile
CPAN shell
perl -MCPAN -e shell install MaxMind::DB::Writer::FromTextFile
For more information on module installation, please visit the detailed CPAN module installation guide.