Diary
お久しぶりです
久しぶりに自分で日記を覗いて見たら、何と前回の書き込みは8月・・
あれから何だかんだと忙しくて日記を書く暇がなかった。
それにしても今までの日記を読み返して見ると、毎年夏になるとProgramming Perlを読み返しているなあと思った。今見たら二つ前の「Perl覚え書き」なる記事の内容が一瞬意味不明で、しばらく眺めていたらやっと何が書いてあるか分かり、こんなに記憶力が衰えているのはやっぱり年のせいかと愕然とし..
続きを読む
2003年10月24日(金)
No.44
()
Comment(0)
Perl覚え書き
■the m// Operator (Matching)
1. In scalar context, the operator returns true (1) if successful, false ("") otherwise.
ex.) If ($shire =~ /Baggins/) {..........}
2. In list context, m// returns a list of substrings matched by the capturing parentheses in the pattern.
In list context, m//g returns a list of all matches found.
If there are no capturing pa..
続きを読む
2003年10月27日(月)
No.45
()
Comment(0)
Perl覚え書き
■Creating References
1. You can create areference to any named variable or subroutine with a backslash.
$scalarref = \$foo;
$arrayref = \@ARGV;
$hashref = \%ENV;
$coderef = \&handler;
$globref = \*STDOUT;
2. You can create areference to an anonymous array with square brackets.
$arrayref = [1,2,['a','b','c','d']];
3..
続きを読む
2003年10月30日(木)
No.47
()
Comment(0)
<<
2003年10月
>>
日
月
火
水
木
金
土
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
最近の記事
お久しぶりです
2003年10月24日(金)
Perl覚え書き
2003年10月27日(月)
Perl覚え書き
2003年10月30日(木)
検索
OR
AND
スペースで区切って複数指定可能
++HOME++
[Admin]
[TOP]
shiromuku(fs6)DIARY
version 1.76