
Hash::Extract - extract hash values onto lexical variables. ja; Hash::Extract - ハッシュの値をレキシカル変数に展開

Version 0.02

use Hash::Extract qw(hash_extract); %hash = ( red => 'apple', blue => 'sky', ); hash_extract( \%hash, my $blue ); print $blue; # ==> 'sky'

This module can export one function. ja; このモジュールにはエクスポート可能な関数が1つあります.

extract value which is contained in hash into specified variable. hash key of that is same as variable name. ja; ハッシュに格納されている値を指定された変数に 取り出します. その時指定された変数の変数名をハッシュの キーとして使います.
currently, you can use lexical variables declared in same scope as you call this function. ja; 現在のところ, この関数を呼び出したのと同じスコープにある レキシカル変数のみが使えます.
hash_extract( $hashref, my $xxx);
# ==> my $xxx = $hashref->{xxx};
hash_extract( $hashref, our $xxx);
# ==> die: could not detect name of variable.
note: in this version, hash_extract do not check value of arguments. but options may be added in future release. it is better that variables are set undefined. ja; 今のところ変数の内容とか見ていないですけれど, 今後のバージョンで オプションとか増えるかもしれないので undef にしておいた方が 無難と思います. 使い回ししないで.

YAMASHINA Hio, <hio at cpan.org> ja; 山科 氷魚 (YAMASHINA Hio), <hio at cpan.org>

Please report any bugs or feature requests to bug-hash-extract at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hash-Extract. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. ja; バグや要望は bug-hash-extract at rt.cpan.org 宛に 報告してください. 若しくは http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hash-Extract. にある web インターフェースからでもかまいません. そこから私に通知され, そして私が変更を行うことで報告頂いたバグの進捗を 自動的にあなたに伝えるでしょう.

You can find documentation for this module with the perldoc command. ja; このモジュールのドキュメントは perldoc コマンドで見ることが出来ます.
perldoc Hash::Extract
You can also look for information at: ja; また, 以下の場所でも見ることが出来ます:


Copyright 2006-2007 YAMASHINA Hio, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. ja; このプログラムはフリーソフトウェアです。あなたは Perl と同じ ライセンスの 元で再配布及び変更を行うことが出来ます.