{"id":15557786,"url":"https://github.com/fgasper/p5-symbol-get","last_synced_at":"2026-02-11T03:04:14.504Z","repository":{"id":56837160,"uuid":"76920960","full_name":"FGasper/p5-Symbol-Get","owner":"FGasper","description":"CPAN’s Symbol::Get","archived":false,"fork":false,"pushed_at":"2025-02-21T07:32:29.000Z","size":40,"stargazers_count":0,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T23:36:04.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FGasper.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-20T03:50:34.000Z","updated_at":"2024-04-23T18:54:33.000Z","dependencies_parsed_at":"2024-06-21T02:14:21.855Z","dependency_job_id":"27214cb3-565a-46e7-9219-2b669cdecc00","html_url":"https://github.com/FGasper/p5-Symbol-Get","commit_stats":{"total_commits":31,"total_committers":4,"mean_commits":7.75,"dds":0.09677419354838712,"last_synced_commit":"77c554c9285fcc1deb2c2d30ea9181b58ce87e9e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/FGasper/p5-Symbol-Get","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Symbol-Get","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Symbol-Get/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Symbol-Get/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Symbol-Get/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGasper","download_url":"https://codeload.github.com/FGasper/p5-Symbol-Get/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-Symbol-Get/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29326078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T02:08:56.257Z","status":"ssl_error","status_checked_at":"2026-02-11T02:08:51.338Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-02T15:20:39.179Z","updated_at":"2026-02-11T03:04:14.489Z","avatar_url":"https://github.com/FGasper.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nSymbol::Get - Read Perl’s symbol table programmatically\n\n# SYNOPSIS\n\n    package Foo;\n\n    our $name = 'haha';\n    our @list = ( 1, 2, 3 );\n    our %hash = ( foo =\u003e 1, bar =\u003e 2 );\n\n    use constant my_const =\u003e 'haha';\n\n    use constant my_const_list =\u003e qw( a b c );\n\n    sub doit { ... }\n\n    my $name_sr = Symbol::Get::get('$Foo::name');    # \\$name\n    my $list_ar = Symbol::Get::get('@Foo::list');    # \\@list\n    my $hash_hr = Symbol::Get::get('%Foo::hash');    $ \\%hash\n\n    #Defaults to __PACKAGE__ if none is given:\n    my $doit_cr = Symbol::Get::get('\u0026doit');\n\n    #Constants:\n    my $const_val = Symbol::Get::copy_constant('Foo::my_const');\n    my @const_list = Symbol::Get::copy_constant('Foo::my_const_list');\n\n    #The below return the same results since get_names() defaults\n    #to the current package if none is given.\n    my @names = Symbol::Get::get_names('Foo');      # keys %Foo::\n    my @names = Symbol::Get::get_names();\n\n# DESCRIPTION\n\nOccasionally I have need to reference a variable programmatically.\nThis module facilitates that by providing an easy, syntactic-sugar-y,\nread-only interface to the symbol table.\n\nThe SYNOPSIS above should pretty well cover usage.\n\n# ABOUT PERL CONSTANTS\n\nPrevious versions of this module endorsed constructions like:\n\n    my $const_sr = Symbol::Get::get('Foo::my_const');\n    my $const_ar = Symbol::Get::get('Foo::my_const_list');\n\n… to read constants from the symbol table. This isn’t reliable across\nPerl versions, though, so don’t do it; instead, use `copy_constant()`.\n\n# SEE ALSO\n\n- [Symbol::Values](https://metacpan.org/pod/Symbol%3A%3AValues)\n\n# LICENSE\n\nThis module is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-symbol-get","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgasper%2Fp5-symbol-get","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-symbol-get/lists"}