On Fri, 14 Sep 2007 11:23:57 +0200, patmarbidon wrote:
> Hello,
> I use fedora 7 and yesterday I updated perl with perl-5.8.8-23.fc7
> 
> After this update I want to install new modules with CPAN and I got this 
> message :
> Catching error: 'Undefined subroutine &Compress::Zlib::gzopen called at 
> /usr/lib/perl5/5.8.8/CPAN/Tarzip.pm line 103.
> ' at /usr/lib/perl5/5.8.8/CPAN.pm line 274
> 
> If I try a little program with Compress::Zlib::gzopen, I get the message :
>   is only avaliable with the XS version at 
> /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 9
> 
> What about XS or XSloader
> 
> Since this error I can't use CPAN and I get several warnings messages 
> about Scalar::Util
> Use of uninitialized value in concatenation (.) or string at 
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 30.

Related to your error:

    28    if (grep { /^(dualvar|set_prototype)$/ } @_ ) {
    29      require Carp;
    30      Carp::croak("$1 is only avaliable with the XS version");

Hey, you found a bug in Scalar::Util's error reporting.  The $1 was
localized and is gone by the croak:

$ perl -wle '@x=qw(ab); if (grep {/(b)/} @x){print $1}'
Use of uninitialized value in print at -e line 1.

I suggest you reinstall Scalar::Util manually:

wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/
tar xzvf Scalar-List-Utils-1.19.tar.gz
cd Scalar-List-Utils-1.19
make test install

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to