use Data::Dumper instead of Data::Dump so all our dependencies are perl core modules 0.0801
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Sep 2009 11:37:25 +0000 (11:37 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 14 Sep 2009 11:37:25 +0000 (11:37 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@63 447b33ff-793d-4489-8442-9bea7d161be5

Makefile.PL
lib/Redis.pm
lib/Redis/Hash.pm
t/01-Redis.t
t/10-Redis-List.t
t/20-Redis-Hash.t

index fb2edf5..96f6ad0 100644 (file)
@@ -11,7 +11,7 @@ WriteMakefile(
     PREREQ_PM => {
         'Test::More' => 0,
                'IO::Socket::INET' => 0,
-               'Data::Dump' => 0,
+               'Data::Dumper' => 0,
                'Carp' => 0,
     },
     dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
index 2caa3b7..7c8bf23 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 use strict;
 
 use IO::Socket::INET;
-use Data::Dump qw/dump/;
+use Data::Dumper;
 use Carp qw/confess/;
 
 =head1 NAME
@@ -75,7 +75,7 @@ sub AUTOLOAD {
        my $command = $AUTOLOAD;
        $command =~ s/.*://;
 
-       warn "## $command ",dump(@_) if $self->{debug};
+       warn "## $command ",Dumper(@_) if $self->{debug};
 
        my $send;
 
@@ -147,7 +147,7 @@ sub __read_bulk {
        my $v;
        if ( $len > 0 ) {
                read($self->{sock}, $v, $len) || die $!;
-               warn "<< ",dump($v),$/ if $self->{debug};
+               warn "<< ",Dumper($v),$/ if $self->{debug};
        }
        my $crlf;
        read($self->{sock}, $crlf, 2); # skip cr/lf
@@ -166,7 +166,7 @@ sub __read_multi_bulk {
                $list[ $_ ] = $self->__read_bulk( substr(<$sock>,1,-2) );
        }
 
-       warn "## list = ", dump( @list ) if $self->{debug};
+       warn "## list = ", Dumper( @list ) if $self->{debug};
        return @list;
 }
 
index d85e71f..c56a22f 100644 (file)
@@ -6,8 +6,6 @@ use warnings;
 use Tie::Hash;
 use base qw/Redis Tie::StdHash/;
 
-use Data::Dump qw/dump/;
-
 =head1 NAME
 
 Redis::Hash - tie perl hashes into Redis
index cc8d95b..a54d88c 100755 (executable)
@@ -4,7 +4,7 @@ use warnings;
 use strict;
 
 use Test::More tests => 108;
-use Data::Dump qw/dump/;
+use Data::Dumper;
 
 use lib 'lib';
 
@@ -184,7 +184,7 @@ diag "Remote server control commands";
 
 ok( my $info = $o->info, 'info' );
 isa_ok( $info, 'HASH' );
-diag dump( $info );
+diag Dumper( $info );
 
 diag "Connection handling";
 
index 1ebdd75..4910e16 100755 (executable)
@@ -5,7 +5,6 @@ use strict;
 
 use Test::More tests => 8;
 use lib 'lib';
-use Data::Dump qw/dump/;
 
 BEGIN {
        use_ok( 'Redis::List' );
@@ -27,4 +26,3 @@ is_deeply( [ @a ], [ 'foo', 'bar', 'baz' ] );
 ok( push( @a, 'push' ), 'push' );
 is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] );
 
-#diag dump( @a );
index 660c8f3..169eda4 100755 (executable)
@@ -5,7 +5,6 @@ use strict;
 
 use Test::More tests => 8;
 use lib 'lib';
-use Data::Dump qw/dump/;
 
 BEGIN {
        use_ok( 'Redis::Hash' );