in reply to X-platform testers wanted: new version of Devel::Size

I think that the biggest problem with Devel::Size is the unsupported CODErefs. It even crashes perl when you use them :p And makes this module totally useless IMO (FYI: see the RT queue for the related bug)
  • Comment on Re: X-platform testers wanted: new version of Devel::Size

Replies are listed 'Best First'.
Re^2: X-platform testers wanted: new version of Devel::Size
by BrowserUk (Patriarch) on Oct 02, 2008 at 18:22 UTC

    I think you should probably just upgrade, because the current cpan version does coderefs just fine:

    c:\test>perl -MDevel::Size=total_size -wle"sub x{ $_[0]*10 } print total_size(\&x)" 2884 c:\test>perl -MDevel::Size=total_size -wle"print total_size(\%::)" 199700

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Unfortunately new version (0.71) does not fix this issue. And in fact, if this was fixed, I think the the related bug was closed too :) Here is a little sample that'll crash your perl:
      perl -wle "use strict;use Devel::Size qw(total_size);my$t=sub{my$x=''; +};print total_size($t);"
      You'll see something like:
      Free to wrong pool 286ee8 not 286f30.
      And perhaps a Windows crash dialogue (if you didn't disable it).