Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.
For the best experience please use the latest Chrome or Safari browser. Firefox 10 (to be released soon) will also handle it.
まあいいや
良く言われる Perl の悪いところを改善したい!
と、ふと思いました
Perl の悪いところの例
- 省略記法
- 特殊変数が覚えられない
- 日本語のドキュメントが少ない
これらの問題を一気に解決する、cool な手法を思いついた!
それは...
つかいかた
use Japanese;
my $input = "ふたりはミルキィホームズ絶賛放送中!";
if ( $input =~ qr/ミルキィホームズ/ ) {
say $照合; # => ミルキィホームズ
say $前照合; # => ふたりは
say $後照合; # => 絶賛放送中!
}
補足
- あ、「思いついた」って書いたけど、思いついたの僕じゃないです。
- YAPC の直前あたりに、Yancha でそんな話してたので
制限事項
- まだ、この3変数しか実装してません。
- 僕と一緒に美しい日本語を考えませんか!
おしまい