{"id":30211300,"url":"https://github.com/mons/devel-rewrite","last_synced_at":"2025-10-10T21:05:43.066Z","repository":{"id":136416676,"uuid":"511729","full_name":"Mons/Devel-Rewrite","owner":"Mons","description":"Development preprocessor for perl code","archived":false,"fork":false,"pushed_at":"2010-02-15T11:38:29.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T20:55:47.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/Devel-Rewrite","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mons.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-02-10T18:17:34.000Z","updated_at":"2014-09-08T20:45:12.000Z","dependencies_parsed_at":"2023-03-13T11:03:11.608Z","dependency_job_id":null,"html_url":"https://github.com/Mons/Devel-Rewrite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mons/Devel-Rewrite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FDevel-Rewrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FDevel-Rewrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FDevel-Rewrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FDevel-Rewrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mons","download_url":"https://codeload.github.com/Mons/Devel-Rewrite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2FDevel-Rewrite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005332,"owners_count":26083883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-13T20:34:29.053Z","updated_at":"2025-10-10T21:05:43.033Z","avatar_url":"https://github.com/Mons.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Devel::Rewrite - Development preprocessor\n\nSYNOPSIS\n        # Your::Module:\n\n        # @rewrite s/^#\\s+//;\n        # use Some::Development::Module;\n\n        # @rewrite s/some_call/another_call/;\n        $object-\u003esome_call;\n\n        sub something {\n        # @include sub.debug.inc\n        ...\n        }\n\n    And in author tests:\n\n        # xt/some-development-test.t:\n        use strict;\n        {\n        use Devel::Rewrite;\n        use Modules::That::Should::Be::Rewrited;\n        }\n        use Modules::Other;\n\n        # make your tests...\n\n    Also this module implements pragmatic behaviour.\n\n        use Devel::Rewrite;\n        use Module1; # rewrite enabled;\n        {\n        no Devel::Rewrite;\n        use Module2; # rewrite disabled;\n        {\n            use Devel::Rewrite;\n            use Module3; # rewrite enabled;\n        }\n        use Module4; # rewrite disabled;\n        }\n        use Module5; # rewrite enabled;\n\nDESCRIPTION\n    The main purpose of this module is creating optional debugging routines.\n\n    - which does not require any additional prerequsites for production,\n    like for ex Devel::Leak::Cb\n\n    - which does not provide any perfomance overhead in production\n    enveronment.\n\n    - which requires no rebuild of target modules for enabling debugging\n    routines\n\n    In other words, this module is external source filter, for any loading\n    modules\n\nIMPORTANT NOTICE\n    This module overloads \"CORE::GLOBAL::require\" on \"import\". Since this is\n    module loading endpoint, it won't call any previously overloaded\n\n    So, if you use something, like as, load this package earlier, than as\n\n    Also, please, don't use this module inside your modules. Only in\n    external scripts and applications. That's because there is no way to\n    change the behaviour of \"use\"'d module inside your sources\n\nDIRECTIVES\n    @include filename\n        Include source of \"filename\" into directive place. Rewrite\n        subprocessing of include will be done. \"filename\" should be relative\n        to file, which call @include\n\n        # Module.pm:\n        sub yoursub {\n            my @args = @_;\n            # @include debug.inc\n            ...\n        }\n        # debug.inc:\n        warn \"Entered sub\";\n\n    @rewrite EXPR\n        Call EXPR in context of next non-empty source line\n\n        sub test {\n\n            # @rewrite s/'not\\s+/'/;\n\n            return 'not rewritten';\n\n        }\n\n        If next non-empty line is another directive, rewrite is ifnored and\n        warning is emitted\n\nAUTHOR\n    Mons Anderson, \"\u003cmons@cpan.org\u003e\"\n\nSUPPORT\n    You can look for information at:\n\n    *   RT: CPAN's request tracker\n\n        \u003chttp://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Rewrite\u003e\n\n    *   AnnoCPAN: Annotated CPAN documentation\n\n        \u003chttp://annocpan.org/dist/Devel-Rewrite\u003e\n\n    *   CPAN Ratings\n\n        \u003chttp://cpanratings.perl.org/dist/Devel-Rewrite\u003e\n\n    *   Search CPAN\n\n        \u003chttp://search.cpan.org/dist/Devel-Rewrite/\u003e\n\n    *   GitHub\n\n        \u003chttp://github.com/Mons/Devel-Rewrite\u003e\n\nCOPYRIGHT \u0026 LICENSE\n    Copyright 2010 Mons Anderson.\n\n    This program is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Fdevel-rewrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmons%2Fdevel-rewrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Fdevel-rewrite/lists"}