perl 5 まとめウィキ

タグ検索でcapture::tiny1件見つかりました。

Capture::Tiny

&fukidashi(tomyhero){ STDOUT/STDERRを簡単に取得することができます。 printした内容をテストする際などに便利です。} * 例 =|PERL| use Test::More qw/no_plan/; use warnings; use strict; use Capture::Tiny qw/capture/; use Data::Dumper; my ($stdout , $stderror ) = capture { print "hi stdout"…

https://seesaawiki.jp/w/perl5/d/Capture%3a%3aTiny... - 2009年05月04日更新

どなたでも編集できます