On Tue, 28 Feb 2006, Lyle Kopnicky wrote:
> Hi folks,
> 
> I know how to use PPM from the command line, but I want to call it from
> Perl, preferably without spawning separate processes.  There seems to be
> a PPM3 module installed in ActivePerl, but how do I access it?  E.g., I
> would like to write something like:
> 
>     use PPM;
>     my $ppm = new PPM;
>     $ppm->install('http://blahblah.net/Package.ppd') or die "Failed to
> install package.";
>     my @search_packages = $ppm->search('FunPackage');
>     print (map "$_->name\n", @search_packages);

While it is _possible_ to use the PPM3 module outside of PPM, I would
strongly recommend not to do this. It requires quite a bit of convoluted
setup to make it work right, and executing it in an external process is
much easier.

Cheers,
-Jan


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to