Forum Moderators: coopster & phranque

Message Too Old, No Replies

the perl tie function

and server platform issues

         

volatilegx

11:41 pm on May 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is anyone aware of any platform issues with the perl function tie()?

I'm trying to tie a hash to a dbm database and it simply isn't working on my Windows 98 machine. I'm getting an error with the following message:

Goto undefined subroutine &AutoLoader::AUTOLOAD at C:/Perl/lib/Fcntl.pm line 208.

I don't reference any packages or modules in my script so I'm not really sure why Fcntl.pm is even being called... does using tie call that package? and is there something wrong with that package in windows?

<added>Oops I do use the DB_File module. Here's a bit of code:

use DB_File;
my %IPlist;

tie %IPlist, 'DB_File', "IPlist"
or die "Cannot open $filename: $!\n" ;

</added>

littleman

12:17 am on May 10, 2002 (gmt 0)



It has been a while since I've played with this, I usually work with flat file or jump up to MySQL, but I recall that DBMs are platform specific. I think SDBM is the one that was universal.

Try using Any_DBM, it will work with what ever is available.

littleman

12:28 am on May 10, 2002 (gmt 0)



Or, try SDBM_File.

volatilegx

10:58 pm on May 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for responding, littleman... I got the same errors when I tried used those modules. I believe my Fcntl package is screwed up somehow.