Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
MaxMind::DB::Writer(3) User Contributed Perl Documentation MaxMind::DB::Writer(3)

MaxMind::DB::Writer - Create MaxMind DB database files

version 0.300003

    use MaxMind::DB::Writer::Tree;
    my %types = (
        color => 'utf8_string',
        dogs  => [ 'array', 'utf8_string' ],
        size  => 'uint16',
    my $tree = MaxMind::DB::Writer::Tree->new(
        ip_version            => 6,
        record_size           => 24,
        database_type         => 'My-IP-Data',
        languages             => ['en'],
        description           => { en => 'My database of IP data' },
        map_key_type_callback => sub { $types{ $_[0] } },
            color => 'blue',
            dogs  => [ 'Fido', 'Ms. Pretty Paws' ],
            size  => 42,
    open my $fh, '>:raw', '/path/to/my-ip-data.mmdb';

This distribution contains the code necessary to write MaxMind DB database files <>. See MaxMind::DB::Writer::Tree for API docs.

If you're running into install errors under Mac OS X, you may need to force a build of the 64 bit binary. For example, if you're installing via "cpanm":
    ARCHFLAGS="-arch x86_64" cpanm MaxMind::DB::Writer

This distribution does not currently work on Windows. Reasonable patches for Windows support are very welcome. You will probably need to start by making Math::Int128 work on Windows, since we use that module's C API for dealing with 128-bit integers to represent IPv6 addresses numerically.

Please report all issues with this code using the GitHub issue tracker at <>.
We welcome patches as pull requests against our GitHub repository at <>.
Bugs may be submitted through <>.

Olaf Alders <>
Greg Oschwald <>
Dave Rolsky <>
Mark Fowler <>

Florian Ragwitz <>
Ilya Melamed <>
Jan Bieron <>
Narsimham Chelluri <>
Thomas J Mather <>
William Storey <>

This software is copyright (c) 2018 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2019-01-03 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.