Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: X-platform testers wanted: new version of Devel::Size

by Burak (Chaplain)
on Oct 02, 2008 at 16:52 UTC ( [id://715049]=note: print w/replies, xml ) Need Help??


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)

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://715049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-29 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found