Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Error when using dbmopen.

by Anonymous Monk
on May 04, 2013 at 23:19 UTC ( #1032091=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

In attempting to execute the following code:

use strict; use warnings; use v5.16; my %docs; my @data; dbmopen %docs, 'mydocs', undef or die $!; open FH, 'C:/perlfunc.pod' or die $!; @data = <FH>; for (@data) { if (/^item\s+(\w+).*$/) { $docs{$1} = $.; } } dbmclose %docs;

A "pop-up" message appeared that stated msys-perl5_8.dll could not be found. Since I am using ActivePerl 5.16.3, I thought this was rather odd. Is there a way to fix this error (perhaps with a registry "adjustment")?


Comment on Error when using dbmopen.
Download Code
Replies are listed 'Best First'.
Re: Error when using dbmopen.
by afoken (Monsignor) on May 05, 2013 at 05:05 UTC

    Looks like you have at least parts of a second Perl on your system (MSys 5.8, I guess), and both seem to mix. Clean up your system, i.e. uninstall MSys correctly and completely, or uninstall ActivePerl and use MSys Perl.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      While it may sound naive, do you have any suggestions on how I might "clean up" my machine? Are there any files and/or folders that I should recognize as being candidates for deletion? A new, and possibly related, problem:
      perl -e "use DB::File'

      results in a message saying the module could not be located yet attempting to install it via ppm results in another message saying there are no missing packages to install.

        There is no module named "DB::File" to be found anywhere, it doesn't exist
Re: Error when using dbmopen.
by Anonymous Monk on May 05, 2013 at 09:20 UTC

      I seem to have resolved the problems I indicated.

      The dbmopen issue was, it appears, the result of an untidy (to say the least) uninstall of Cygwin which left dozens of files scattered across my root folder, i.e., C:/. The DB_File question (this is embarrassing) could have been resolved much faster if I had simply asked google (please see below):

      Since I am using a 32-bit Windows XP machine, the reason why I was unable to load the file and the repository I was using did not show it as being available was, alas, immediately obvious when I visited that link.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032091]
Approved by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-05-03 23:04 GMT
Find Nodes?
    Voting Booth?