{"id":20093378,"url":"https://github.com/hirokidaichi/p5-data-destructuring-assignment","last_synced_at":"2026-01-29T23:06:47.349Z","repository":{"id":3243782,"uuid":"4280817","full_name":"hirokidaichi/p5-Data-Destructuring-Assignment","owner":"hirokidaichi","description":"harmony's destructuring assignment for perl5","archived":false,"fork":false,"pushed_at":"2012-05-11T02:31:31.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T09:05:21.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/hirokidaichi.png","metadata":{"files":{"readme":"README","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-05-10T05:57:52.000Z","updated_at":"2014-08-14T12:24:14.000Z","dependencies_parsed_at":"2022-08-23T14:30:18.742Z","dependency_job_id":null,"html_url":"https://github.com/hirokidaichi/p5-Data-Destructuring-Assignment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hirokidaichi/p5-Data-Destructuring-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokidaichi%2Fp5-Data-Destructuring-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokidaichi%2Fp5-Data-Destructuring-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokidaichi%2Fp5-Data-Destructuring-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokidaichi%2Fp5-Data-Destructuring-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirokidaichi","download_url":"https://codeload.github.com/hirokidaichi/p5-Data-Destructuring-Assignment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokidaichi%2Fp5-Data-Destructuring-Assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28889864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"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-11-13T16:47:12.405Z","updated_at":"2026-01-29T23:06:47.325Z","avatar_url":"https://github.com/hirokidaichi.png","language":null,"readme":"NAME\n    Data::DestructuringAssignment - harmony's destructuring assignment for\n    perl5\n\nSYNOPSIS\n        use Data::DestructuringAssignment qw/destruct/;\n    \n        destruct([\\my $hoge,\\my $fuga]) = [10,20];\n        print \"hoge is $hoge\";# hoge is 10\n        print \"fuga is $fuga\";# fuga is 20\n\n        destruct( \\my $hoge ) = 10;\n\n        destruct( [\\my $a ,\\my $b] ) = [1,2];\n\n        destruct( { hash =\u003e \\my $hash } ) = { hash =\u003e [1,2,3]};\n\n        my @array =  map{ +{ hoge =\u003e \"$_\",fuga =\u003e $_ * 2}} (1..10);\n        while(destruct({ hoge =\u003e \\my $hoge } ) = shift @array) {\n            # $hoge..;\n        }\n    \n        my @array =  map{ +{ hoge =\u003e \"$_\",fuga =\u003e $_ * 2}} (1..10);\n        for my $elem (@array){\n            destruct({ hoge =\u003e \\my $hoge, fuga =\u003e \\my $fuga}) = $elem;\n        }\n    \n        my $template = { hoge =\u003e 1,fuga =\u003e 2};\n        if( destruct({ hoge =\u003e \\my $hoge ,piyo =\u003e \\my $fuga }) = $template ){\n            ::pass 'matched any';\n        }else {\n            # not come here\n        }\n\nDESCRIPTION\n    Data::DestructuringAssignment provides harmony's destructuring\n    assignment for perl5\n\nAUTHOR\n    Daichi Hiroki\u003chirokidaichi {at} gmail.com\u003e\n\nSEE ALSO\n    \u003chttp://wiki.ecmascript.org/doku.php?id=harmony:destructuring\u003e\n\nLICENSE\n    This library is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirokidaichi%2Fp5-data-destructuring-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirokidaichi%2Fp5-data-destructuring-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirokidaichi%2Fp5-data-destructuring-assignment/lists"}