in reply to Win32 Perl-Critic Setup Question

Your Scalar::Util needs to be recompiled.

That's odd, cause the one I have with ActivePerl 5.8.0 and ActivePerl 5.8.8 works:

>c:\progs\perl580\bin\perl -e"use Scalar::Util qw( weaken ); weaken \$ +a" >c:\progs\perl588\bin\perl -e"use Scalar::Util qw( weaken ); weaken \$ +a"

Replies are listed 'Best First'.
Re^2: Win32 Perl-Critic Setup Question
by ddn123456 (Pilgrim) on May 29, 2008 at 09:28 UTC
    Hi Ikegami,

    Many thx for the info.

    When running the line you provided I get:

    perl -e"use Scalar::Util qw( weaken ); weaken \$a"
    Weak references are not implemented in the version of perl at -e line 1
    BEGIN failed--compilation aborted at -e line 1.

    How do you advise to compile Scalar::Util? I'm not so familiar with this.

    Many thanks!
    ddn123456
      Hi,

      Just did the compile procedure with "Scalars::Utils":
      - perl Makefile.PL
      - make
      - make test
      ....t\dualvar.......skipped
      ....all skipped: dualvar requires XS version
      ....t\first.........ok
      ....2/17 skipped: Poor man's MULTICALL can't cope
      ....t\isvstring.....skipped
      ....all skipped: isvstring requires XS version
      ....t\proto.........skipped
      ....all skipped: set_prototype requires XS version
      ....2/23 skipped: Poor man's MULTICALL can't cope
      ....t\weak..........skipped
      ....all skipped: weaken requires XS version
      ....All tests successful, 4 tests and 4 subtests skipped.
      ....Files=35, Tests=331, 3 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)

      - make install
      However afterwards the error remains.

      How should I tackle this?

      Thx!
      ddn123456
        all skipped: weaken requires XS version
        Install a compiler, then try again, or grab from PPM