note
Sidhekin
<p> This can't be done with simple ties. </p>
<p> It <em>can</em> be done with [mod://Test::Trap], though. :) (Shameless as ever ....)</p>
<c>
use Test::Trap qw/ :flow:stderr(systemsafe) /; # or similar
trap { system 'command', 'with', 'args' };
my @logmessages = split /\n/, $trap->stderr; # chomped! or season to taste
</c>
<p> Not exclusively for use in test scripts, indeed. :) </p>
<div class="pmsig"><div class="pmsig-106949">
<p align=center>
<font size=-1><code>print "Just another Perl ${\(trickster and hacker)},"</code></font>
<br>The Sidhekin <b>proves</b> Sidhe did it!</p>
</div></div>
652944
652944