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

Hi, I've had Config::Std 0.0.4 installed on my server.

When I try to use it, it complains:

Undefined subroutine &Scalar::Util::refaddr

Yet when I look at the Scalar::Util 1.18 documentation on CPAN there is no refaddr method.

Here's the code:
#!/usr/local/bin/perl -w use strict; use Config::Std; my ($k, $v); read_config 'tst.cfg' => my %config; while(($k, $v) = each(%config)) { print "for $k, value is: " . $v . "\n"; }

What do I need to do?

Thanks,
Peter

Replies are listed 'Best First'.
Re: Config::Std requirements question
by jhourcle (Prior) on Jun 05, 2006 at 17:05 UTC

    You're looking at different documentation than I am, then:

    use Scalar::Util qw(blessed dualvar isweak readonly refaddr reftype ta +inted weaken isvstring looks_like_number set_prototy +pe);

    I'd say, install a version of Scalar::Util after version 1.09 or so.