On Nov 8, 2005, at 1:03 PM, Cees Hek wrote:

On 11/8/05, Bill Stephenson <[EMAIL PROTECTED]> wrote:
I set up the PodViewer Example but can't get it to work. It doesn't log any errors, but it won't load any pods either (It does list them). I've
tried debugging it a bit, but still don't get what's not working.

I've tried isolating the "loadpod" sub_routine with a test script and
hardcoded the "$name" variable, but still don't see why it's not
working.

I'm running this on a Mac OSX (10.3.9). Any ideas on what I'm doing
wrong?

Hi Bill,

search.perl.org changed their URL structure slightly, so the module no
longer retrieves the correct page.  I haven't got around to updating
the example in the module, but I do have a similar example app running
on my website that I fixed up a couple of days ago (I don't think the
code is identical but it will be close).

http://cees.crtconsulting.ca/perl/examples/podviewer/

You can view all the source right from that page as well, so maybe you
can copy that example and get it to work on your local box.  When I
find some time, I will update the example in the CAP::HTMLPrototype
module.  Maybe it would be smart to not depend on an external website
for the example :)


Thanks Cees!

I copied the "loadpod" sub from the app on your website and that got the example running great. That's such a cool, handy, little app, I've got it linked to my "Bookmarks Bar" now!

I did make one small change sort of worth noting to the "loadpod" sub. It's really just a personal preference, but I didn't like to way it listed modules in the autofill, so I changed this line:

push @names, format_package($package, $version, $location) unless grep { $package !~ $_ } @options;
to this:
push @names, format_package($package, $version, $location) if ($package =~ /^$name/);

I think this helps list the module I'm looking for a little quicker.

Kindest Regards,

--
Bill Stephenson


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to