File: rt-37174.t

package info (click to toggle)
libclone-fast-perl 0.96-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 344 kB
  • sloc: perl: 200; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 398 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!perl
use Test::More tests => 1;

use strict;
use warnings;

use Clone::Fast qw(clone);
use Data::Dumper;
use Devel::Peek;

local $Data::Dumper::Useperl = 1;

my $hashref =   {
    'foo' => [
        'Bar'
    ],
};

Dump( $hashref, 10 );
warn("Record before clone: ".Dumper($hashref));
Dump( $hashref, 10 );
my $clone = clone($hashref);
warn("Record after clone: ".Dumper($clone));


pass('Ok');