Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • The other day I discovered that there is a module on CPAN called Clone, which does somewhat the same as my Object::Clone.
    So now I don't know which one to use for Metrics::LOC?

    None of the above. Storable dclone

    1. It's in the core as of 5.8
    2. It copies new features correctly (offhand I can think of restricted hashes, and hashes with UTF8 keys)
    3. It is well supported:
      $ perl -e 'use Clone qw(clone); $a = \$b; undef $a; $c = clone $a;'
      Segmentation fault

      That bug is 3 months old now [] and untouched, despite the fact that the fix is known []

    • Hmmm

      My own Object::Clone does not suffer from the same problem, maybe it is because I use it in an strictly OOP way - it might have to require some more testing.

      I will check out Storables dclone