Perl is a high-level programming language with roots in C, sed, awk and shell scripting. Perl is good at handling processes and files, and is especially good at handling text. Perl's hallmarks are practicality and efficiency. While it is used... 続きを読む
Monoceros というPSGI/Plackサーバ書きました https://metacpan.org/release/Monoceros https://github.com/kazeburo/Monoceros StarmanやStarletのようなPreforkなアプリケーションサーバでは、コネクションの維持イコールプロセスの占有なので、HTTPのKeepAli... 続きを読む
2013-05-14 Minilla を用いた Perl モジュールの作り方 http://shanon-tech.blogspot.jp/2013/05/perl.html Perl モジュールの作り方、2013年においては Authoring tool をつかって作るのがよいです。具体的には Minilla でつくるのがオススメであります。 perl... 続きを読む
As a newer member of the Mojolicious Core Development Team, I am more than usually excited for a Mojolicious release. This is because the next major release, version 4.0, is set to ship very soon! For those of you who don’t know, Mojolicious... 続きを読む
The Perl community is AWESOME! Much has been said and written on this topic: a lot of it true, some of it not so much, and sadly a nontrivial amount of it FUD. Yet, since this is about Perl, there is definitely more than one way to say it. So... 続きを読む
2013年4月に行った Perl5 Census Japan 2013から「YAPC::Asia Tokyoで聞いてみたい話はありますか」という設問に対しての答えを一部抜粋、編集したもの。かぶっている内容は、それが登場した回数がわかるようにわざと出してます 募集時のエントリ:http://lestr... 続きを読む
その他の翻訳 > github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md utf-8この翻訳について¶ この文書は、https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.mdを翻訳したものです。 ラ... 続きを読む
Michael Schwern is the creator of Test::Simple and Test::More and probably the person who introduced testing to the Perl community. He tells us how he got involved in Perl, why did he build the test framework for Perl, and how did he manage t... 続きを読む
先日から社内で、今年度の新卒向けにテストの講師やってくださいと仰せつかり、 別に誰かに強制されたわけではないのですが、去年までの講義資料だとチュートリアル的な感じで終始してしまったいたので、 資料をスクラッチで書き始めてしまい、しばらく苦しみが... 続きを読む
Perl 5.18 からは、PerlIO::scalarでopenできるのはバイト列だけになるようです。 とのことだったので、「あれ?utf8の文字列を STDIN 経由でキャプチャしたらどうなるんだっけ?」とか、ちょっと気になったのでやってみた。 最初に書いたのがコレ。(いつものや... 続きを読む
以前こちらでも予告しておいた通り、4月12日から14日までイギリスのランカスターで開催されたPerl QA Hackathonに参加してきました。今回のイベントも多くのスポンサーさまに支えていただきました。運営チームのみなさまおよび企業団体スポンサー(cPanel, Dijkm... 続きを読む
Monoceros は @kazeburo さんが開発してる Plack 用ウェブサーバ。prefork型だけど、待機中の接続をイベントドリブンのマネージャで管理することで、同時接続10,000本とか行ける(ソケットの受け渡しは SCM_RIGHTS とか使う)。で、雑感 大好き!!!Starletよ... 続きを読む
A weblog about Programming, Tech, gadgets, Japan and San Francisco. Disabled flock serialization when it’s unnecessary. This will improve the performance when you have many Starman worker processes on Linux systems (kazeburo) #69 It’s a min... 続きを読む
There was a subtle API change in File::Temp 0.23 that improves consistency, but might break old, buggy code. Prior to 0.23, here was the calling signature for the functional and object oriented interfaces for File::Temp (with some creative sp... 続きを読む
$ curl -kL https://raw.github.com/gugod/App-perlbrew/13f760afd72762bbf253bf3070efee12b9a33cef/perlbrew > perlbrew $ perl perlbrew install The perlbrew is installed as: ~/perl5/perlbrew/bin/perlbrew You may trash the downloaded /usr/local/bin/... 続きを読む
The official Lancaster Consensus document is on Github. This blog post is an annotated review of it. The Lancaster Consensus At the first Perl QA Hackathon in 2008 in Oslo, a number of QA and toolchain authors, maintainers and experts came to... 続きを読む
NAME SYNOPSIS DESCRIPTION SEE ALSO LICENSE AUTHOR NAME Devel::Cover::Report::Coveralls - coveralls backend for Devel::Cover SYNOPSIS # .travis.yaml language: perl perl: - 5.16.3 - 5.14.4 before_install: cpanm Devel::Cover::Report::Coveralls s... 続きを読む
こんにちは、櫛井です。 例年は開催告知時点で決まっていたメインのゲストスピーカーですが 今年はちょっと遅れまして、公式サイトにも先ほど追記しましたが 決定いたしましたのでお知らせいたします。 Matt S. Trout Moose, Moo, Catalyst, fatpacker等様々な... 続きを読む
先週末に開催された Perl QA Hackathon 2013 Satellite Tokyo に参加してきた。会場が所属先だったんですが、普段仕事してるところに perl mongerな方々がいる光景はちょっと面白かったw Perl QA Hackathonということで、それぞれcartonやcapnmやminillaやTest... 続きを読む
NAME SYNOPSIS OPTIONAL ARGUMENTS DESCRIPTION CONFIGURATION AND ENVIRONMENT CAVEATS AUTHOR LICENCE AND COPYRIGHT DISCLAIMER OF WARRANTY NAME cpanm-reporter - send cpanm output to CPAN Testers SYNOPSIS Call cpanm as you normally would: > cpanm ... 続きを読む
How to debug a perl script using gdb - Presentation Transcript Perl スクリプトを gdb でデバッグ 2011/10/15 YAPC::Asia Tokyo 2011 @ 大岡山 株式会社ディー・エヌ・エー 樋口 証 Perl実行中のプロセスをデバッグ 今どこの perl コードを実行してるのか... 続きを読む
2013-04-15 Starman と Starlet のベンチマークと Accept Serialization StarmanとStarletの違いはいくつかありますが、Starletにいくつか手を加えたあと、速度はどうなっているのか比較してみた。各ソフトウェアのバージョンは以下。 Plack-1.0023 Starman-0.3... 続きを読む
昨日の日記にコメントいただいた、ActivePerl のドキュメントを調べてみた。まず、Release Notes を読んでみると、The fork() emulation has known limitations. See perlfork for a detailed summary. In particular, fork() emulation will not work correctl... 続きを読む
PerlCPANモジュールでサポートしていないOSのTest ReportをNA(Not Available)にしたい場合はMakefile.PLやBuild.PLで以下のようにする必要があります。 unless ($^O eq "MSWin32" || $^O eq "cygwin") { die "OS unsupported\n"; } CPAN Testersのツールは以下... 続きを読む
2013-04-13 CPAN Meta Spec 2.0 における requires, recommends, suggests perl cpanfile などにかく、requires, recommends, suggests の使い分け、どうあるべきか。 requires These dependencies must be installed for proper completion of the phase. reco... 続きを読む
Japan Perl Association(JPA)の代表理事を務める牧大輔氏が、日本におけるPerl5の利用動向を調査する試みを、11日から行っている。 Perl5 Census Japan 2013 アンケートはGoogleドキュメントのフォームを介して匿名で受けつけており、Perlをメインで使ってい... 続きを読む
2013-04-12 CPAN モジュールのビルド関連についての最近の風潮 http://shibayu36.hatenablog.com/entry/2013/04/11/191322 ExtUtils::MakeMaker → Module::Build → Module::Install → Module::Build → そして今、Minilla が颯爽と登場! というわけで、2013... 続きを読む
Moose continues to emerge as the new standard for writing OO libraries in Perl. It provides a powerful, consistent API for building classes with a minimum of code. It can be customized with reusable components, making it easier to refactor yo... 続きを読む
As soon as I saw a Flame Graph visualization I knew it would make a great addition to NYTProf. So I’m delighted that the new Devel::NYTProf version 5.00, just released, has a Flame Graph as the main feature of the index page. In this post I... 続きを読む
Test::Moreのsubtestのテストはどう書くのが一番きれいなのか コードを見る限り、ガードオブジェクト使うとteardown部分は気が楽ですよ。以下のような使い方をすればガードオブジェクトはスコープを抜けた瞬間に必ず実行されるのでteardownのタイミングなんて気... 続きを読む
2013-04-09 Test::More で teardown/setup http://blog.ainam.me/2013/04/09/test-more-perl-testing/ http://lestrrat.ldblog.jp/archives/26535307.html package t::Util; use parent qw(Exporter); our @EXPORT = qw(lovetest $MOCK); use Test::More; sub l... 続きを読む
ログ集計は任せろばりばりー stats コマンドの最近の変更点 Perl Casual #5 でプレゼンさせてもらった stats コマンド(App::LogStats)なんですが、その後ちょいちょいバージョンを上げたので(現在0.08)、その辺をまとめてみます。 出力面 テーブルの縦の罫線を... 続きを読む
とあるシステムでデータベースから引いてきたデータの表示が文字化けするという不具合がありました。 データベース内のデータとしては文字化けしていない状態で格納されていることはわかっていたので、どこかしらの文字変換で化けていることはわかっています。... 続きを読む
CPAN Module の変更点をサクッと調べる方法 というエントリーに反応してみるテスト。 僕は CPAN Module のバージョン間の diff をとるのに、search.cpan.org にある diff 機能を使う以下のようなやっつけスクリプトを使ってる。 たまに空のレスポンスが返ってき... 続きを読む
2013-04-03 僕のかんがえた最強の Getopt::Long の使い方 http://www.songmu.jp/riji/archives/2013/02/2013getoptlong.html http://d.hatena.ne.jp/tagomoris/20120918/1347991165 my $p = Getopt::Long::Parser->new( config => [qw(posix_default no_ignore_... 続きを読む
2013-04-03 cpanm の挙動がおかしいな、とおもったら確認すべきこと だいたいはセットアップに失敗しているだけですが、cpanm がキョドってるときに僕がやっているトラブルシューティングの手順をここに記す。 おもった通りの cpanm をよんでいるかチェックする... 続きを読む
Perl環境の設定方法はここ数年で大きく進化し、変わってきました。ここではアプリケーションのデプロイも見据えた、モダンなperl環境の整え方を紹介していきます。具体的にはperl本体や外部モジュールのインストール方法を解説したのち、Perlを使ったアプリケー... 続きを読む
日記, コンピュータ, Perl | 23:14 | STDIN/STDOUT を使うテストの続き。id:gfx さんより、トラバで、PerlIO の IO::scalar を使う方法を教えていただきました。IO::scalarでIOのキャプチャ - use GFx::WebLog;標準モジュールのIO::scalarでもIOキャプチャでき... 続きを読む
JVNでも公開されていますが、perl 5.8.2からperl 5.16系までのバージョンでハッシュ値の計算に対する脆弱性が報告されています。 perl 5.16系であれば perl 5.16.3、5.14系であれば perl 5.14.4 で修正がされていますので、アップグレードを推奨されています。 ... 続きを読む
About this site The goals of the CPANTS project are to provide some sort of quality measure (called "Kwalitee") and lots of metadata for all distributions on CPAN. Please take all the information presented here with a grain of salt. The metho... 続きを読む
cpan | 01:48 | https://github.com/toritori0318/p5-App-RedisTop/issues/5 issueを頂いて知ったのですが、MANIFEST.SKIPに #!include_default を書いておくとデフォルトでMANIFESTから除外したほうがよいようなファイルをSKIPに追加してくれるようです。 blib... 続きを読む
Redis | 03:13 | 上がったようです。わーい\(^o^)/http://search.cpan.org/~toritsuyo/App-RedisTop-0.01/ cpanm App::RedisTopでインストールできるようになりました。楽ちん! パッチを送っていただいたfujiwaraさん、hirose31さん、lingerで相談に乗ってい... 続きを読む
I intentionally excluded modules like WWW::Mechanize, which provide higher-level functions. Web::Magic was close to failing that test! I'll look at each module in turn, then present results of comparing the modules, and finally which module y... 続きを読む
Redis | 01:55 | とある日 memcache-topみたいなのでredis-topとかないのかな 2013-03-06 15:07:02 via YoruFukurou探してみたけどたしかにそれっぽいの無さそうだし自分も欲しいし書くしか無い!!!! というわけで書きました。https://github.com/toritori03... 続きを読む
This post is a response to Neil Bower's post Don't release experiments to CPAN. Neil, respectfully, I disagree. The huge success of CPAN is, I think, in large part because it encouraged experimentation and alternatives. Suggesting people uplo... 続きを読む
NAMEDESCRIPTIONSUPER QUICK PATCH GUIDEBUG REPORTINGPERL 5 PORTERSperl-changes mailing list#p5p on IRCGETTING THE PERL SOURCERead access via GitRead access via the webRead access via rsyncWrite access via gitPATCHING PERLSubmitting patchesGett... 続きを読む
NAMESYNOPSISGETTING ACCESS TO THE REPOSITORYREAD ACCESS VIA THE WEBREAD ACCESS VIA GITWRITE ACCESS TO THE REPOSITORYA NOTE ON CAMEL AND DROMEDARYOVERVIEW OF THE REPOSITORYFINDING OUT YOUR STATUSSUBMITTING A PATCHUsing git to send patch emails... 続きを読む
Statistics Favorites 0 Downloads 0 Comments 0 Embed Views 0 Views on SlideShare 0 Total Views 0 cpanfile Presentation Transcript cpanfile Hokkaido.pm #9 Yoshihiro Sasaki 自己紹介twitter: aloelightCPAN: YSASAKIgithub: ysasakiPerlでスマホアプリ... 続きを読む
First of all, I love CPAN. CPAN was the first of its kind, to provide an extensive and official library of modules that support the language itself. CPAN is very much a part of Perl as much as regular expressions are. Without CPAN, Perl would... 続きを読む