{
    "mode": "perldoc",
    "parameter": "less",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/less/json",
    "generated": "2026-06-15T14:16:04Z",
    "synopsis": "use less 'CPU';",
    "sections": {
        "NAME": {
            "content": "less - perl pragma to request less of something\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use less 'CPU';\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a user-pragma. If you're very lucky some code you're using will know that you asked for\nless CPU usage or ram or fat or... we just can't know. Consult your documentation on everything\nyou're currently using.\n\nFor general suggestions, try requesting \"CPU\" or \"memory\".\n\nuse less 'memory';\nuse less 'CPU';\nuse less 'fat';\n\nIf you ask for nothing in particular, you'll be asking for \"less 'please'\".\n\nuse less 'please';\n",
            "subsections": []
        },
        "FOR MODULE AUTHORS": {
            "content": "less has been in the core as a \"joke\" module for ages now and it hasn't had any real way to\ncommunicating any information to anything. Thanks to Nicholas Clark we have user pragmas (see\nperlpragma) and now \"less\" can do something.\n\nYou can probably expect your users to be able to guess that they can request less CPU or memory\nor just \"less\" overall.\n\nIf the user didn't specify anything, it's interpreted as having used the \"please\" tag. It's up\nto you to make this useful.\n\n# equivalent\nuse less;\nuse less 'please';\n\n\"BOOLEAN = less->of( FEATURE )\"\nThe class method \"less->of( NAME )\" returns a boolean to tell you whether your user requested\nless of something.\n\nif ( less->of( 'CPU' ) ) {\n...\n}\nelsif ( less->of( 'memory' ) ) {\n\n}\n\n\"FEATURES = less->of()\"\nIf you don't ask for any feature, you get the list of features that the user requested you to be\nnice to. This has the nice side effect that if you don't respect anything in particular then you\ncan just ask for it and use it like a boolean.\n\nif ( less->of ) {\n...\n}\nelse {\n...\n}\n",
            "subsections": []
        },
        "CAVEATS": {
            "content": "This probably does nothing.\nThis works only on 5.10+\nAt least it's backwards compatible in not doing much.\n",
            "subsections": []
        }
    },
    "summary": "less - perl pragma to request less of something",
    "flags": [],
    "examples": [],
    "see_also": []
}