The document summarizes techniques for Unix programming with Perl, focusing on advanced topics like inter-process communication, signals, and avoiding race conditions. It discusses using IPC::Open3 to avoid deadlocks when communicating between processes via pipes. It also covers how to safely sleep while waiting for a signal using POSIX::pselect or a socketpair to avoid race conditions. Proper err
21. sub logf { my ($level,$message) = @_; my ($pkg,$file,$line) = caller; my @time = localtime; warn sprintf "%04d-%02d-%02dT%02d:%02d:%02d [%s] %s at %s line %d.n", $time[5]+1900, $time[4]+1, @time[3,2,1,0], $level, $message, $file, $line; } logf(“WARN”,”timeout”); logf(“INFO”,”foo bar”); 2011-10-05T09:41:30 [WARN] timeout at test.pl line 10. 2011-10-05T09:41:30 [INFO] foo bar at test.pl line 11.
The document shows code for processing images using the Imager module in Perl. It demonstrates scaling, cropping, mapping color values, combining images using rubthrough, adding text with QR codes, detecting differences between images, and detecting faces in an image using a cascade classifier. It also includes code to search for adult video actresses from a porn module.Read less
リアルワールドグループでは札幌勤務のWebエンジニアを募集中です。4/25(月)に採用イベントを開催予定です。
Oct 15, 2011Download as KEY, PDF0 likes1,548 viewsAI-enhanced description Embed perl allows a C program to use Perl code and features by adding a Perl interpreter to the C program. It allows calling Perl subroutines from C, evaluating Perl statements, and performing Perl regular expressions. Using embed perl provides access to CPAN modules and Perl's powerful regex engine without needing PCRE. The
20 min. Presented at YAPC::Asia, Tokyo Institute of Technology in Tokyo. (English version here) DTraceは、コンピューターが何を動作していることを調べるために、とても強力なツールです。プロダクションでも使えますよ。ネットワーク監視という神様が怒らず! これは、Perlのやさしい世界の厳しい外部でも、デバッグや最適化や監視をするツールです。アプリケーションのコードを汚染していないままで、再起動が必要でなくて、トレースを示す可能があります!しかも、他の使っているモジューでも、カーネルプロセスでも、他のアプリケーションル(例えば:MySQL、Apache)でも、トレースで動作を検査できます。printfのようなデバッグすることが好きの方にとって、DTraceも好きになると思います。 このトークでは
操作方法 l キー: 次のページへ h キー: 前のページへ j キー: 目次ページへ k キー: 目次ページから戻る 目次ページでは j k キーで一覧を移動し、クリックで選択します
YAPC楽しい 今年は芝生で餃子食べられた! トークが素晴らしいのはもちろんのこと、YAPCくらい大きなイベントになると普段会えない遠方の人たちと会えたり、面識のない人でも話ができるのでとてもいいイベントですね!(面識がないと言ってもTwitterのscreen nameで誰だかわかるので初対面だけど初対面じゃない、みたいな不思議な感じで話ができてよかった) やや後悔 ただ、今年は何か発表したいな、なんて思いつつ過ごしていたものの大きなネタもなく発表を見送ってしまった点はsugyanさんの心境に近いものが…。 やって良かったと思えたこと 今年はアプリが出なさそうだったので、モバイル向けのタイムテーブルを作った(YAPC::Asia 2011 用タイムテーブル(モバイル用)作った - punitan (a.k.a. punytan) のメモ)ところ、公式アカウント@yapcasiaをはじめ、
Perl のおまつり、 YAPC::Asia に参加しています。 昨年はプライベートでドタバタしていたので、2 年ぶりの参加でした。前回に比べて参加者も多く、それでいてスムーズなイベント進行と素敵なトークの数々でとても楽しい時間を過ごしています。 ひとまず 1 日目を振り返りつつ、聞いたトークをまとめておこうと思いました。 振り返ると、インフラ寄りな内容を選んでいたこともありますが、今日は Perl に限らない話も多かったように思います。それだけ広い知識と経験が必要で、いろんな所でいろんなひとが挑戦していることがわかってわくわくしましたが! Perl 5.16 and beyond 今回のスペシャルゲスト、 Perl5 開発リーダーの Jesse Vincent (@obra) さんの講演。Perl5 の開発プロセスがどのように変化してきたか、そして今後の Perl5 がどうなっていくのか
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く