<?xml version="1.0" encoding="windows-1252"?>
<node id="1007333" title="Output capture of CPAN shell" created="2012-12-05 11:51:33" updated="2012-12-05 11:51:33">
<type id="115">
perlquestion</type>
<author id="867261">
jjap</author>
<data>
<field name="doctext">
Dear Monks,

&lt;p&gt;The installation of a module fails (PDL in this instance). I am running Strawberry Perl. I just want to capture the cpan shell output for further examination. &lt;/p&gt;

I intuitively tried the following with no success: &lt;br/&gt;

&lt;code&gt;cpan&gt; install PDL &gt; c:\path\logfile &lt;/code&gt;&lt;br/&gt;

Thanks for any suggestion&lt;br/&gt;&lt;br/&gt;

&lt;b&gt;UPDATE:&lt;/b&gt; Needed to &lt;strike&gt;double&lt;/strike&gt; &lt;b&gt;escape&lt;/b&gt; the backslashes &lt;strike&gt;(Windows)&lt;/strike&gt; in the path, I should have though of it. Thanks!&lt;br/&gt;
&lt;b&gt;UPDATE 2:&lt;/b&gt; Clarification brought following [greengaroo]'s reply, indeed one is in Perl when at the cpan prompt!</field>
</data>
</node>
