in reply to Problems after Perl was updated on FreeBSD.

If you don't have write permissions in the perl folders, you'll need to get your sysadmin to do it. I suspect HTML::Parser is not a core module. Check out CPAN for corelist; it doesn't show up as a core module (under ActiveState reinstalled.

Alternatively, you can try adding the path to HTML::Parser module with

use lib /path_with_HTML::Parser/; use HTML::Parser;
but this won't work if the person running the program doesn't have access to the /path_with_HTML_Parser.

My first suggestion would be to have your sysadmin install HTML::Parser.

emc

" When in doubt, use brute force." — Ken Thompson

Replies are listed 'Best First'.
Re^2: Problems after Perl was updated on FreeBSD.
by techcode (Hermit) on Feb 27, 2006 at 22:52 UTC
    Maybe I haven't made myself clear...

    HTML::Parser is not core module, and it is (was) installed on the server. After Perl update it can't be found anymore by the perl. And I believe that if you update Perl installed modules remain - simply because it would be stupid to be other way and require from you to install all the (non core) modules after each Perl update.

    I suspect that the sysadmin (who I assume did the update) didn't do the update right - and somehow forgot to include the folders where non-core modules are installed in the INC.

    I've been trying to figure out how to add stuff to the @INC for the whole server - Config.pm seems to hold some of that info on Windows, but I'm not sure for FreeBSD (probably the same). Also not sure about where it is specified where to look for Config.pm ...


    Have you tried freelancing? Check out Scriptlance - I work there.