----- Original Message ----- 
From: "Alex Laslavic (Lenox)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 30, 2006 5:35 AM
Subject: problems with Scalar::Util


> The script still runs fine when I run script.pl through perl, but now,
> when I package the exe, and run it i get:
> "refaddr" is not exported by the Scalar::Util module

My understanding is that the error message is simply telling you that
"refaddr" is not listed in either @EXPORT or @EXPORT_OK.

I mean - you can have a Foo.pm that looks like:

package Foo;
use strict;
require Exporter;

our $VERSION = 0.01;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(garbage);
1;

And you can load that module from a script as:

use Foo qw(garbage);

and the fact that garbage() doesn't even exist matters not. (And you can
then build that script inot an executable and run it without any trouble -
at least on 0.90 you can.)

Could it be that the exe is picking up some version of Scalar::Util that
does not, in fact, export "refaddr". I would check that both the script and
the executable are getting hold of the same version of Scalar::Util by:

print $Scalar::Util::VERSION, "\n";

Cheers,
Rob

Reply via email to