wonder on server side

 : on twitter

[デザインパターン]Visitorパターン

without comments

Visitorパターンについてです。

Read the rest of this entry »

Written by wonder-boys

8月 23rd, 2010 at 6:43 pm

Posted in other

Proxyパターンについて

without comments

Proxyパターンについてです。
Read the rest of this entry »

Written by wonder-boys

8月 9th, 2010 at 9:58 pm

Posted in design pattern

Tagged with

Chain of Responsibilityパターンについて

without comments

Chain of Responsibilityパターンについて調べた。

Read the rest of this entry »

Written by wonder-boys

7月 8th, 2010 at 12:41 pm

[perl]別ドメインのファイルを取得する

with one comment

perlのopenを使っても別ドメインにあるファイルの取得はできません。
LWPモジュールを使うと取得できるようになるようです。

今回は一番簡単なLWP::Simpleを使ってみます。

Read the rest of this entry »

Written by wonder-boys

11月 19th, 2009 at 6:38 pm

Posted in module, perl

Tagged with ,

[perl]括弧の使い方をちょっとまとめてみる

without comments

perlをやってて、ふと括弧に迷ってしまいました。
(、[、{とかなんのことやら。
ほかの言語ともごっちゃになってなんのことやら。

Read the rest of this entry »

Written by wonder-boys

11月 17th, 2009 at 12:39 pm

Posted in memo, perl

Tagged with

[perl]ハッシュのkeyとvalueを逆にする

without comments

ハッシュのkeyとvalueの値を逆にするには、reverseを使います。

Read the rest of this entry »

Written by wonder-boys

11月 15th, 2009 at 7:35 pm

Posted in memo, perl

Tagged with ,

[perl]HTML::Templateモジュールの基本

without comments

HTMLとスクリプト部分を分割するにはテンプレートエンジンを使用します。
簡単なものだと、HTML::Templateが良く使われるようです。

Read the rest of this entry »

Written by wonder-boys

11月 13th, 2009 at 7:53 pm

[perl]CGI.pmのstart_htmlでいつも使ってるhead要素を生成してみる

without comments

start_htmlメソッドを使うといろいろな要素が生成できるので、いつも使っているhtmlのhead内を再現してみます。

Read the rest of this entry »

Written by wonder-boys

11月 12th, 2009 at 6:22 pm

Posted in module, perl

Tagged with , ,

[perl]CGIモジュール

with 2 comments

perlのフォーム作成をお手伝いするにあたって、CGIモジュールを知らないとだめでした。

Read the rest of this entry »

Written by wonder-boys

11月 9th, 2009 at 7:31 pm

Posted in module, perl

Tagged with

[perl]サブルーチンの「&(アンパサンド)」について

without comments

サブルーチンの呼び出し時につける「&(アンパサンド)」は省略できます。

Read the rest of this entry »

Written by wonder-boys

11月 8th, 2009 at 4:08 pm

Posted in perl, study

Tagged with ,