Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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")?

Thanks.

Comment on Error when using dbmopen.
Download Code
Re: Error when using dbmopen.
by afoken (Parson) 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.

    Alexander

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

      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.

      Thanks.
        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
      Ok.

      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):

      http://code.activestate.com/ppm/DB_File/

      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.

      Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-27 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls