end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

2017-02-05から1日間の記事一覧

Email::Stuffer for perl による HTMLメール送信 (HTML+TXTマルチパート)

Email::Stuffer や Email::Sender::Transport::SMTP 、 Email::Sender::Transport::SMTP::TLS に殆どおまかせなので、 以下のように書くだけでOK。 #!/usr/local/bin/perl use strict; use warnings; use utf8; use Email::Stuffer; use Email::Sender::Tran…

perlのCLIでコマンドライン引数を受取りは、Getopt::Long::GetOptions()

↓こんな感じで使用します。とうより、自分用メモ。 #!/usr/local/bin/perl use strict; use warnings; # http://tagomoris.hatenablog.com/entry/20120918/1347991165 use Getopt::Long qw(:config posix_default no_ignore_case gnu_compat); use Data::Dum…

sleep() , select() , Time::HiRes::sleep() による perlのsleep処理

perlのsleepでは、1秒単位のsleepは組込み関数のsleep()、 1秒未満単位のsleepは Time::HiResの sleep() を使用しますが、 select(undef, undef, undef, $sleep_time)でも、Time::HiRes::sleep() と同様の動作をできるらしい。 #!/usr/local/bin/perl use st…