以前程式碼遇上 utf-8 資料時總是比較麻煩,不是資料是 utf-8 或 big5 ,就是程式碼內含 big5 或 utf-8 字元。這些有了 use utf8; 後,都算比較好處理一點。
以前程式碼遇上 utf-8 資料時總是比較麻煩,不是資料是 utf-8 或 big5 ,就是程式碼內含 big5 或 utf-8 字元。這些有了 use utf8; 後,都算比較好處理一點。
Perl 5.12.0 is available here.
累,然後不好睡,食物飲料有待加強…..
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
用起來很爽啊, 可是很難自己調出來 …..
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...
In short words, Jifty is great for Web development!!!!
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 !~...
為了某個原因,要對兩個變數做 XOR 的檢查,除了這個之外不知道有沒有更好的寫法:
一定還有更好的方法…. *想*