perl

[utf8] perl -C?

2010/04/29
By

以前程式碼遇上 utf-8 資料時總是比較麻煩,不是資料是 utf-8 或 big5 ,就是程式碼內含 big5 或 utf-8 字元。這些有了 use utf8; 後,都算比較好處理一點。

Read more »

Perl 5.12.0

2010/04/22
By

Perl 5.12.0 is available here.

Read more »

2008 Yahoo Hackday

2008/09/22
By

累,然後不好睡,食物飲料有待加強…..

Read more »

Using svk branch management for YASA

2008/04/22
By

First of all, setting properties on the YASA project svk:project:path-tags => tags/ svk:project:path-trunk => trunk/yasa/ svk:project:path-branches => branches/ Then, svk mi /yasa/mirror/yasa http://localhost/repos/yasa % svk sync /yasa/mirror/yasa % perl -Isvk/trunk/lib /usr/local/bin/svk br -l /yasa/mirror/yasa yasa-freq Works

Read more »

Jifty 跟春藥一樣

2008/01/04
By

用起來很爽啊, 可是很難自己調出來 …..

Read more »

Perl 5.10.0 is released

2007/12/19
By

Perl 5.10.0 is available here. Also with the torrent file. You might want to see What’s new for perl 5.10.0, for me, the most important thing is Named Capture Buffers(1) And here are some things about performance: In-place sorting: Sorting arrays in place (@a = sort @a) is now optimized…. Lexical array access: faster...

Read more »

[perl] Jifty-0.70824 released

2007/08/27
By

In short words, Jifty is great for Web development!!!!

Read more »

[plagger] patch to Plugin/CustomFeed/GoogleNews.pm

2007/05/15
By

In order to process rss from news.google.com.tw, I’ve made the following tiny patch: Index: lib/Plagger/Plugin/CustomFeed/GoogleNews.pm =================================================================== — lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (revision 1948) +++ lib/Plagger/Plugin/CustomFeed/GoogleNews.pm (working copy) @@ -18,7 +18,7 @@ sub handle { my($self, $context, $args) = @_; - if ($args->{feed}->url =~ m!^http://news.google.(?:co.jp|com)/! && $args->{feed}->url !~ /output=(?:rss|atom)/) { + if ($args->{feed}->url =~ m!^http://news.google.(?:co.jp|com(?:.tw)?)/! && $args->{feed}->url !~...

Read more »

[perl] XOR?

2007/05/14
By

為了某個原因,要對兩個變數做 XOR 的檢查,除了這個之外不知道有沒有更好的寫法:

Read more »

[regex] match match 再 match

2005/11/25
By

一定還有更好的方法…. *想*

Read more »