in reply to XML::Simple broken in 5.8.0?

What error message or symptom are you seeing, exactly?

XML::Simple uses Storable for cacheing data structures. Storable, in turn, uses Fcntl for file locking. This should have been installed along with the new version of Perl, but make sure you aren't using an earlier version with the XS components compiled under the older version of Perl -- 5.8.0 breaks binary compatibility. (check @INC and search for Fcnt.pm).

Matt

Replies are listed 'Best First'.
Re: Re: XML::Simple broken in 5.8.0?
by theguvnor (Chaplain) on Dec 16, 2002 at 20:43 UTC

    Error message:

    lock can only be used on shared values at C:/Perl/site/lib/XML/Simple.pm line 477.

    The XML::Simple module at line 477 is:

    lock($DefaultValues);

    and the $DefaultValues variable is declared at line 53 (my $DefaultValues = 1;) and doesn't seem to make an appearance anywhere else in the module.

    I checked to see if there was an updated XML::Simple package available via ppm, but no such luck.

    I also followed mojotoad's advice and found that the installed version of Fcntl.pm in the new, fresh ActivePerl install has a filesystem timestamp of 2001-06-05. Perhaps that is the source of the problem... anyone out there with a similar hw/sw config that could comment?

    ..Jon