目前分類:perl程式 (36)
- Sep 18 Fri 2009 14:40
perl轉換ORACLE及MySQL資料
- Sep 18 Fri 2009 11:31
perl 以DOBC連接 ORACLE
一、設定ODBC
開始->控制台->系統管理工具->資料來源(ODBC)
系統資料來源名稱->新增->Oracle ODBC Driver->完成
Data Source Name:aDSN
Service Name:aSN
開始->控制台->系統管理工具->資料來源(ODBC)
系統資料來源名稱->新增->Oracle ODBC Driver->完成
Data Source Name:aDSN
Service Name:aSN
- Jan 09 Wed 2008 17:29
POP3Client連接智邦mail[perl]
use MIME::Parser;
use Mail::POP3Client;
use MIME::Base64;
use MIME::QuotedPrint;
use Encode;
use Mail::POP3Client;
use MIME::Base64;
use MIME::QuotedPrint;
use Encode;
- Dec 30 Sun 2007 08:10
隨機弄亂陣列[perl]
- Dec 11 Tue 2007 11:23
自製字典檔
- Dec 03 Mon 2007 17:24
自動投票-你會不賄選網站
- Nov 30 Fri 2007 08:59
轉寄mail抽獎[perl]
- Nov 15 Thu 2007 00:03
文章人氣排行榜[perl]
- Nov 08 Thu 2007 00:03
判斷email正確性-Email::Valid模組
- Nov 07 Wed 2007 00:03
ActivePerl PPM便利模組安裝
ActivePerl在按裝模組方面提供了一個很方便的程式
PPM(Perl Package Manager),
當你安裝好ActivePerl時,
這個程式就已經裝好在你的電腦裡了,
執行PPM的方法是直接在「命令列模式」下輸入PPM後按Enter,
PPM(Perl Package Manager),
當你安裝好ActivePerl時,
這個程式就已經裝好在你的電腦裡了,
執行PPM的方法是直接在「命令列模式」下輸入PPM後按Enter,
- Nov 05 Mon 2007 00:03
搜索email帳號[perl]
- Oct 22 Mon 2007 00:01
WWW::Mechanize FAQ[Perl]
Can I do [such-and-such] with WWW::Mechanize?
If it's possible with LWP::UserAgent,then yes. WWW::Mechanize is a subclass of LWP::UserAgent, so all the wondrous magic of that class is inherited.
How do I use WWW::Mechanize through a proxy server?
See the docs in LWP::UserAgent on how to use the proxy. Short version:
$mech->proxy( ['http','ftp'],'http://proxy.example.com:8000/');
or get the specs from the environment:
$mech->env_proxy(); # Environment set like so: gopher_proxy=http://proxy.my.place/ wais_proxy=http://proxy.my.place/ no_proxy="localhost,my.domain" export gopher_proxy wais_proxy no_proxy
- Oct 21 Sun 2007 00:01
VBA轉換為Perl OLE程式
- Oct 10 Wed 2007 12:45
flush perl's print buffer
HANDLE->autoflush(EXPR)
$OUTPUT_AUTOFLUSH
$|
If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after each write).
$OUTPUT_AUTOFLUSH
$|
If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is really buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after each write).
- Jul 03 Tue 2007 10:40
程式碼裡的html標籤替換[perl]
- Jul 03 Tue 2007 10:19
搜取區域網路內的ip與mac對照[perl]
- Jul 02 Mon 2007 17:26
統計迴響過的pixnet網友[perl]
呼應一下這篇「統計留言版有哪些pixnet網友來留過言」,這回把統計的對向改到迴響的網友,只統計pixnet網友,沒pixnet帳號的就沒統計了。
●程式
use WWW::Mechanize;
use HTML::TreeBuilder;
●程式
use WWW::Mechanize;
use HTML::TreeBuilder;
- Jun 30 Sat 2007 22:01
日期轉換成字串Date::Format[perl]
Date::Format可以將日期轉換成字串。它提供的方法相對於C函式庫的strftime和ctime。
Date::Format提供的函式是time2str〔其參數為格式樣版(format template)和(Unix時間)和strftime(其參數為格式樣版和一連串的時間值(例如由localtime所傳回的陣列)〕。
這兩個函式都使用同樣的格式指定方式
格式指定元:說明
Date::Format提供的函式是time2str〔其參數為格式樣版(format template)和(Unix時間)和strftime(其參數為格式樣版和一連串的時間值(例如由localtime所傳回的陣列)〕。
這兩個函式都使用同樣的格式指定方式
格式指定元:說明
- Jun 30 Sat 2007 21:56
日期和時間的表示法[perl]
- Jun 30 Sat 2007 21:31
取得日期和時間localtime[perl]
localtime函式取得當地目前的日期和時間,當然存量內容(scalar context)的方式來處理時,localtime會以字串的型式傳回目前的時間和日期。
localtime函式時間的值是一個從1970年1月1日至今以秒計算的整數值。如果你不提供一個時間值給localtime函式,它會呼叫perl的time函式。
print scalar localtime, "\n";
localtime函式時間的值是一個從1970年1月1日至今以秒計算的整數值。如果你不提供一個時間值給localtime函式,它會呼叫perl的time函式。
($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst)=localtime;