- or download this
perl -e 'use Clone qw(clone); $a = \$b; undef $a; $c = clone $a;'
- or download this
perl -e 'use Clone qw(clone); $a ={}; undef $a; $c = clone $a;'
- or download this
perl -e 'use Clone qw(clone); undef $a; $c = clone $a;'
- or download this
perl -e 'use Clone qw(clone); $a =""; undef $a; $c = clone $a;'
- or download this
perl -MClone=clone -le '%a=(chr 256 =>1);$c=clone \%a; print ord fore
+ach keys %$c'
196
- or download this
perl -MStorable=dclone -le '%a=(chr 256 =>1);$c=dclone \%a; print ord
+ foreach keys %$c'
256