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.

I intuitively tried the following with no success: cpan> install PDL > c:\path\logfile
Thanks for any suggestion

UPDATE: Needed to doubleescape the backslashes (Windows) in the path, I should have though of it. Thanks!UPDATE 2: Clarification brought following greengaroo's reply, indeed one is in Perl when at the cpan prompt!