{"id":32215607,"url":"https://github.com/domm/acme-returnvalue","last_synced_at":"2025-10-22T07:49:20.652Z","repository":{"id":561853,"uuid":"192827","full_name":"domm/Acme-ReturnValue","owner":"domm","description":"Report interesting Perl module return values ","archived":false,"fork":false,"pushed_at":"2021-05-10T07:41:44.000Z","size":88,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T07:49:19.392Z","etag":null,"topics":["cpan","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://returnvalues.plix.at","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/domm.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-05-05T06:44:29.000Z","updated_at":"2021-05-10T07:41:47.000Z","dependencies_parsed_at":"2022-07-08T05:10:08.382Z","dependency_job_id":null,"html_url":"https://github.com/domm/Acme-ReturnValue","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/domm/Acme-ReturnValue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domm%2FAcme-ReturnValue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domm%2FAcme-ReturnValue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domm%2FAcme-ReturnValue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domm%2FAcme-ReturnValue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domm","download_url":"https://codeload.github.com/domm/Acme-ReturnValue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domm%2FAcme-ReturnValue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280402181,"owners_count":26324587,"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-22T02:00:06.515Z","response_time":63,"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":["cpan","hacktoberfest"],"created_at":"2025-10-22T07:49:15.884Z","updated_at":"2025-10-22T07:49:20.645Z","avatar_url":"https://github.com/domm.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nAcme::ReturnValue - report interesting return values\n\n# VERSION\n\nversion 1.004\n\n# SYNOPSIS\n\n    use Acme::ReturnValue;\n    my $rvs = Acme::ReturnValue-\u003enew;\n    $rvs-\u003ein_INC;\n    foreach (@{$rvs-\u003einteresting}) {\n        say $_-\u003e{package} . ' returns ' . $_-\u003e{value};\n    }\n\n# DESCRIPTION\n\n`Acme::ReturnValue` will list 'interesting' return values of modules.\n'Interesting' means something other than '1'.\n\nSee [https://returnvalues.plix.at](https://returnvalues.plix.at) for the results of running Acme::ReturnValue on the whole CPAN.\n\n## METHODS\n\n### run\n\nrun from the commandline (via `acme_returnvalue.pl`\n\n### waste\\_some\\_cycles\n\n    my $data = $arv-\u003ewaste_some_cycles( '/some/module.pm' );\n\n`waste_some_cycles` parses the passed in file using PPI. It tries to\nget the last statement and extract it's value.\n\n`waste_some_cycles` returns a hash with following keys\n\n- file\n\n    The file\n\n- package\n\n    The package defintion (the first one encountered in the file\n\n- value\n\n    The return value of that file\n\n`waste_some_cycles` will also put this data structure into\n[interesting](https://metacpan.org/pod/interesting) or [boring](https://metacpan.org/pod/boring).\n\nYou might want to pack calls to `waste_some_cycles` into an `eval`\nbecause PPI dies on parse errors.\n\n#### \\_is\\_code\n\nStolen directly from Perl::Critic::Policy::Modules::RequireEndWithOne\nas suggested by Chris Dolan.\n\nThanks!\n\n### in\\_CPAN\n\nAnalyse CPAN. Needs a local CPAN mirror\n\n### in\\_INC\n\n    $arv-\u003ein_INC;\n\nCollect return values from all `*.pm` files in `@INC`.\n\n### in\\_dir\n\n    $arv-\u003ein_dir( $some_dir );\n\nCollect return values from all `*.pm` files in `$dir`.\n\n### in\\_file\n\n    $arv-\u003ein_file( $some_file );\n\nCollect return value from the passed in file.\n\nIf [waste\\_some\\_cycles](https://metacpan.org/pod/waste_some_cycles) failed, puts information on the failing file into [failed](https://metacpan.org/pod/failed).\n\n### interesting\n\nReturns an ARRAYREF containing 'interesting' modules.\n\n### boring\n\nReturns an ARRAYREF containing 'boring' modules.\n\n### failed\n\nReturns an ARRAYREF containing unparsable modules.\n\n# BUGS\n\nProbably many, because I'm not sure I master PPI yet.\n\n# AUTHOR\n\nThomas Klausner \u003cdomm@plix.at\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2013 - 2021 by Thomas Klausner.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomm%2Facme-returnvalue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomm%2Facme-returnvalue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomm%2Facme-returnvalue/lists"}