Help for this page

Select Code to Download


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