Also you probably need all the Mail::Box and its derived modules as well.
I certainly got plenty of these messages
Warning: prerequisite Scalar::Util failed to load: Can't locate Scalar +/Util.pm in @INC (@INC contains: D:/Perl/lib D:/Perl/site/lib .) at ( +eval 46) line 3. Warning: prerequisite Test::Harness 1.38 not found at D:/Perl/lib/ExtU +tils/MakeMaker.pm line 343.
when running the Makefile.pl from the Mail::Box tar/archive. The problem is, I used
perl -MCPAN -e "shell" cpan> install Scalar::Util
and the error message still appeared, even though the install went okay ? Even re-installing Mail::Box
D:\Perl\myscripts>\perl\bin\perl.exe -MCPAN -e "shell" cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support available (try 'install Bundle::CPAN') cpan> install Mail::Box CPAN: Storable loaded ok Going to read \.cpan\Metadata Database was generated on Tue, 11 Nov 2003 00:45:51 GMT Mail::Box is up to date. cpan> q Lockfile removed.
and then running the Perl script, still gave the following
D:\Perl\myscripts>\perl\bin\perl.exe checke~1.pl Can't locate Scalar/Util.pm in @INC (@INC contains: D:/Perl/lib D:/Per +l/site/lib .) at D:/Perl/site/lib/Mail/Reporter.pm line 9. BEGIN failed--compilation aborted at D:/Perl/site/lib/Mail/Reporter.pm + line 9. Compilation failed in require at (eval 1) line 3. ...propagated at D:/Perl/lib/base.pm line 62. BEGIN failed--compilation aborted at D:/Perl/site/lib/Mail/Box.pm line + 8. Compilation failed in require at checke~1.pl line 5. BEGIN failed--compilation aborted at checke~1.pl line 5.
I have checked out all the "prerequisite" warning messages, made a note of those modules, then used the 'MCPAN' / shell to install them. The install appears to go okay, it goes out to the internet , parses through files on FTP sites, and says _that_ module has installed okay. ??
Going back to where I think (but don't really know) where the perl script is stopping, is line 9 of Reporter.pm , which has
Use Scalar::Util 'dualvar';
and I know I have installed _that_ module. The other related code from the error messages are
# msg - "...propagated at D:/Perl/lib/base.pm line 62." die if $@ && $@ !~ /^Can't locate .*? at \(eval /; # msg - "compilation aborted at D:/Perl/site/lib/Mail/Box.pm line 8." use base 'Mail::Reporter';
I'm just about all debugged out, and have run out of clues.
I have complete the code I started earlier. The additional code is an example on the kind of thing you could do with the Mail::Box::Manager module. Pretty handy I think.
Thanks very much for that additional code, Roger. I guess the big question is, what is different on your Perl setup to mine ??
Thanks a lot, :)
Peter
In reply to Re: Re: Re: Re: Parsing email files, what are the best modules ?
by peterr
in thread Parsing email files, what are the best modules ?
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |