I have a perl program that crashes when i run it with activeperl. But it
runs fine when i run it on unix.
#!/usr/bin/perl
$file = "test";
dbmopen (%HASH, "$file",0444);
$HASH{a} = "1";
$HASH{b} = "2";
$HASH{c} = "3";
@k = keys (%HASH);
foreach $var (@k) { print "$var\n"; };
########## END OF PROGRAM ##########
It seems that I can't open any DBM files with activeperl that have been
created by a unix verison of Perl.
To test it. I ran this file first on my pc with active perl. This worked
fine.
Then I ran the file on a unix machine and copied the "test.pag" &
"test.dir" files to the pc. When I ran the program again from the PC the
program crashed.
So I guess that activeperl can't open DBM files that have been created on a
unix machine(solaris) perl.
Could someone verify this, or does anyone have a solution. Please let me
know if you need more info.
Thanks,
-Mike
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/listinfo/activeperl