Hi Harry, ----- Original Message ----- From: Harry Putnam <[EMAIL PROTECTED]> Date: Monday, June 30, 2003 1:34 am Subject: Re: make CPAN::Shell->i; print to a filehandle
> Mark G <[EMAIL PROTECTED]> writes: > > > ----- Original Message ----- > > From: "Harry Putnam" <[EMAIL PROTECTED]> > > To: "Mark G" <[EMAIL PROTECTED]> > > Cc: "perl" <[EMAIL PROTECTED]> > > Sent: Sunday, June 29, 2003 4:37 PM > > Subject: Re: make CPAN::Shell->i; print to a filehandle > > > > > >> Mark G <[EMAIL PROTECTED]> writes: > >> > >> > Well I just tryed runing 'CPAN::Shell->i' from the shell, > and it failed > > to > >> > launch it. Can you run 'CPAN::Shell->i' from your systems > default shell > > ?? > >> > you can try using ppm instead. > >> > >> Ahh I guess it doesn't know about `use CPAN' in the parent script. > > > > well you should of included that in your original post. > > Not to put too fine a point on it but OP did clearly lay out the > desired result: > How do I go about making the output from > CPAN::Shell->i; go into a file handle > Instead of STDOUT like it does in this formulation: There is no point of arguing over this { After all this is a friendly group },but I think thats where you had a misunderstanding of your formulation in the first place. The problem as translated { by final result } was how can I redirect the output of a runing process. > > $target = "somefile"; > if($opt_r){ > open(FH,">$target") or die "Cannot open $target: $!"; > print FH CPAN::Shell->i; > } > } > > Thanks for your time helping me get the syntax right. Your very welcome Mark G > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]