{"id":17891327,"url":"https://github.com/cside/universal-source_location_for","last_synced_at":"2026-02-17T17:32:28.574Z","repository":{"id":142948370,"uuid":"3703596","full_name":"Cside/UNIVERSAL-source_location_for","owner":"Cside","description":"Get source filename and line number of a subroutine","archived":false,"fork":false,"pushed_at":"2014-04-27T04:40:38.000Z","size":163,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T20:44:48.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Cside.png","metadata":{"files":{"readme":"README.pod","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":"2012-03-13T05:31:00.000Z","updated_at":"2023-03-06T11:48:19.000Z","dependencies_parsed_at":"2023-03-15T18:35:38.224Z","dependency_job_id":null,"html_url":"https://github.com/Cside/UNIVERSAL-source_location_for","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Cside/UNIVERSAL-source_location_for","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cside%2FUNIVERSAL-source_location_for","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cside%2FUNIVERSAL-source_location_for/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cside%2FUNIVERSAL-source_location_for/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cside%2FUNIVERSAL-source_location_for/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cside","download_url":"https://codeload.github.com/Cside/UNIVERSAL-source_location_for/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cside%2FUNIVERSAL-source_location_for/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29551257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-28T14:16:35.789Z","updated_at":"2026-02-17T17:32:28.551Z","avatar_url":"https://github.com/Cside.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"package UNIVERSAL::source_location_for;\nuse 5.008_001;\nuse strict;\nuse warnings;\n\nour $VERSION = '0.01';\n\nuse B ();\n\nsub UNIVERSAL::source_location_for {\n    my($self, $method) = @_;\n    my $entity = $self-\u003ecan($method) or return();\n    my $gv     = B::svref_2object($entity)-\u003eGV;\n    return($gv-\u003eFILE, $gv-\u003eLINE);\n}\n\n1;\n__END__\n\n=head1 NAME\n\nUNIVERSAL::source_location_for - Get source filename and line number of a subroutine\n\n=head1 SYNOPSIS\n\n    use UNIVERSAL::source_location_for;\n    use File::Spec;\n    my ($source_filename, $line)\n        = File::Spec-\u003esource_location_for('canonpath');\n\n=head1 DESCRIPTION\n\nThis module supplys a universal function \"source_location_for\",  a perl implementation of the method Method#source_location of Ruby.\n\nIt's useful for debug.\n\n=head2 Functions\n\n=head3 C\u003c\u003c Module-\u003esource_location_for('method') \u003e\u003e\n\nReuturn source filename and line number of the subroutine.\n\n=head1 AUTHOR\n\nFuji, Goro (gfx) E\u003clt\u003egfuji(at)cpan.orgE\u003cgt\u003e\n\nHiroki Honda E\u003clt\u003ecside.story \u003cat\u003e gmail.comE\u003cgt\u003e\n\n=head1 LICENSE AND COPYRIGHT\n\nCopyright (c) 2012, Hiroki Honda.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcside%2Funiversal-source_location_for","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcside%2Funiversal-source_location_for","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcside%2Funiversal-source_location_for/lists"}