{
    "mode": "perldoc",
    "parameter": "WWW::RobotRules::AnyDBM_File",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/WWW%3A%3ARobotRules%3A%3AAnyDBM_File/json",
    "generated": "2026-07-05T13:17:28Z",
    "synopsis": "require WWW::RobotRules::AnyDBMFile;\nrequire LWP::RobotUA;\n# Create a robot useragent that uses a diskcaching RobotRules\nmy $rules = WWW::RobotRules::AnyDBMFile->new( 'my-robot/1.0', 'cachefile' );\nmy $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com', $rules );\n# Then just use $ua as usual\n$res = $ua->request($req);",
    "sections": {
        "NAME": {
            "content": "WWW::RobotRules::AnyDBMFile - Persistent RobotRules\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "require WWW::RobotRules::AnyDBMFile;\nrequire LWP::RobotUA;\n\n# Create a robot useragent that uses a diskcaching RobotRules\nmy $rules = WWW::RobotRules::AnyDBMFile->new( 'my-robot/1.0', 'cachefile' );\nmy $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com', $rules );\n\n# Then just use $ua as usual\n$res = $ua->request($req);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a subclass of *WWW::RobotRules* that uses the AnyDBMFile package to implement\npersistent diskcaching of robots.txt and host visit information.\n\nThe constructor (the new() method) takes an extra argument specifying the name of the DBM file\nto use. If the DBM file already exists, then you can specify undef as agent name as the name can\nbe obtained from the DBM database.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "WWW::RobotRules, LWP::RobotUA\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Hakan Ardo <hakan@munin.ub2.lu.se>, Gisle Aas <aas@sn.no>\n",
            "subsections": []
        }
    },
    "summary": "WWW::RobotRules::AnyDBMFile - Persistent RobotRules",
    "flags": [],
    "examples": [],
    "see_also": []
}