in reply to weaken is only available with the XS version

Tho quote the documentation:

Scalar::Util contains both perl and C implementations of many of its functions so that those without access to a C compiler may still use it. However some of the functions are only available when a C compiler was available to compile the XS version of the extension.

Therefore, what you need is a C compiler installed and probably the perl header files (dev packets in your distribution or operating system?). Install that and then reinstall Scalar::Util.

Don't use '#ff0000':
use Acme::AutoColor; my $redcolor = RED();
All colors subject to change without notice.
  • Comment on Re: weaken is only available with the XS version

Replies are listed 'Best First'.
Re^2: weaken is only available with the XS version
by prautt (Initiate) on Dec 12, 2011 at 20:00 UTC
    It works now. Thanks very much!