很簡單, 可是不常用就會忘記, 應該要統一到utf8才好啊… M$的big5好討厭啊… 兩個方法 use Encode qw/encode decode/; $str_utf8 = encode(“utf8″, decode(“big5″, $str_big5)); # $str_big5為big5格式, $str_utf8為… 更多 →
自由的顏色‧風‧海藍cylin wrote 3 months ago: 很簡單, 可是不常用就會忘記, 應該要統一到utf8才好啊… M$的big5好討厭啊… 兩個方法 use Encode qw/encode decode/; $str_utf8 … more →
cylin wrote 3 months ago: Sometimes, if you put a print statement inside of a loop that runs really really quickly, you won’t … more →
Fantast wrote 1 year ago: 之前一直想用 Google App Engine 來開發小程式,不過又都沒時間學 Python。 終於,Memcached 的作者 Brad Fitzpatrick 在他的網誌透露正在努力讓 Goog … more →
mingjian wrote 1 year ago: #!/usr/bin/perl use Net::Ping; $chk_lst=”/etc/hosts”; open(DAT, $chk_lst) || die(“ … more →
mingjian wrote 1 year ago: #!/usr/bin/perl ################################################################# # … more →
mingjian wrote 1 year ago: #!/usr/bin/perl use CGI qw(:all); @rsh=qw(host3 host4 host5); @all=qw( host3 host4 host5 … more →
cylin wrote 2 years ago: 不定時持續更新中… 1. 數字格式化 目的: 1234567 -> 1,234,567 範例: #!/usr/local/bin/perl $myint = “12345 … more →
cylin wrote 2 years ago: 參考自http://bigsnakecat.blogspot.com/2007/08/perl-screen-wrapper.html #!/usr/bin/perl -w # # A wrapper … more →
heavenchou wrote 3 years ago: 本來在整理經錄的資料庫,突然被提醒相關的程式動手寫了沒? 其實我先前都是用 Access 在整理資料庫,而實際寫過資料庫相關應用程式,都是用 C++ 或 C# 寫的,這次經錄要發表的是網路版的程式,原 … more →
GD wrote 4 years ago: 之前玩過一陣子 python 但是沒有非常的精通,只是大概知道 python 的程式要怎麼寫,python 的 api 我也不太熟。最近花了一點時間在看 perl 要怎麼寫,在網路上參考了一些資料之後 … more →