On 10/22/07, C. R. <[EMAIL PROTECTED]> wrote: > I have Solaris 5.9, and am using Perl 5.6.1. Today I started using a > hash connected to a file, via these commands: > dbmopen(%data,"price2007",0666); > dbmclose(%data); > > I have been getting an error: > "AnyDBM_File doesn't define an EXISTS method at extr.pl line 142".
That's odd. The EXISTS method should be supplied by the underlying DBM package. You can find out which one let you down by adding code like this to your program: use AnyDBM_File; print "DBM support courtesy of @AnyDBM_File::ISA.\n"; You might try requesting a different DBM package by using this technique from the AnyDBM_File docs. Of course, you'd have to throw out your existing DBM files, if they were created by a different package. BEGIN { @AnyDBM_File::ISA = qw( DB_File GDBM_File NDBM_File SDBM_File ODBM_File ) } use AnyDBM_File; Leave out the one that let you down, and you'll probably be back on track. (Although re-installing the broken module or perl itself might be a good idea, too.) Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/