http://www.perlmonks.org?node_id=592144

mifflin has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install the Regexp::MatchContext Module.
The install (see below) says that it has a prerequisite of Tie::StdScalar.
However, this module still tests fine.
Also, I cannot find Tie::StdScalar on CPAN.
Is this a warning I should be worried about?
#perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Tie::StdScalar 0 not found. Writing Makefile for Regexp::MatchContext #make cp lib/Regexp/MatchContext.pm blib/lib/Regexp/MatchContext.pm Manifying blib/man3/Regexp::MatchContext.3 #make test PERL_DL_NONLAZY=1 /home/utils/perl-5.8.8/bin/perl "-MExtUtils::Command +::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load.........ok 1/1# Testing Regexp::MatchContext v0.0.2 + t/00.load.........ok + t/pod-coverage....ok + t/pod.............ok + t/sub.............ok + t/vars............ok + All tests successful.

Replies are listed 'Best First'.
Re: cannot find the Tie::StdScalar module
by davido (Cardinal) on Dec 29, 2006 at 00:09 UTC

    Tie::StdScalar is built into Tie::Scalar. If you have Tie::Scalar, you have Tie::StdScalar. Go ahead and install Tie::Scalar and that should clear things up.


    Dave

      Tie::Scalar is included with perl since 5.002. But, unsurprisingly, you can't specify a package as a prereq if it isn't a file whose name is derivable from the package name. TheDamian should have caught this bug in his Makefile.PL.
        So, is this something that I should be worried about?
      Tie::Scalar is already on my system...
      # perl -w -MTie::Scalar -e 'print "$Tie::Scalar::VERSION\n"' 1.00