On Sun, Jun 29, 2003 at 01:37:39PM -0700, Harry Putnam wrote:
> 
> From perldoc it appears that something like this should work but it
> doesn't either:
> my ($wtr, $wdr, $err, @item, $pid);
> 
> $pid = open2($wtr, $rdr,  'perl -e ', 'use CPAN;',  'CPAN::Shell->i;');

This is the equivalent of:

  % perl -e 'use CPAN;' 'CPAN::Shell->i;'

Which doesn't work either (each bit of code needs a '-e').

Anyway, I missed the opening of this thread, but it seems 
strange to open up a subprocess like this.  Can't you just
use the CPAN::Shell methods right in the main script?

-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to