This domain may be for sale!
Tips & Information 今回のお題: 『perl に関するメモ』 ●動機 「なんとなくメモ」に書きっぱなしにしておくのもなんなので。 ●内容 require 文で呼ばれるファイルの末尾 require 文で呼ばれるファイルは、末尾で評価された式が真でなくてはならない。 ファイルの尻に 1; とか書いておくこと。 => 演算子 演算子 => は , (カンマ) と同じ意味。 ハッシュをリテラル形式で書きたいときに使うと良い。 %somehash = ( time=>'tashiro', onigiri=>'washo-i' ); などと使うと見易くなるかもしれない。 ハッシュのキーの表記法(クォート囲みの有無) ハッシュのキーは、基本的にはクォートで囲んでも囲まなくても同じなのだが、 キーの頭文字が数字の場合は囲む必要がある。常に囲っておくという方法もあるが、 => 演算子を使
Perl provides a mechanism for alternative namespaces to protect packages from stomping on each other's variables. In fact, there's really no such thing as a global variable in Perl. The package statement declares the compilation unit as being in the given namespace. The scope of the package declaration is from the declaration itself through the end of the enclosing block, eval, or file, whichever
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く