Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.

by Anonymous Monk
on Oct 31, 2025 at 10:08 UTC ( [id://11166629]=note: print w/replies, xml ) Need Help??


in reply to Re: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.
in thread Latest Strawberries: addresses reported by "p", Devel::Peek, etc.

Thanks for explanation. Looks like "'COW + p' leak by design now" to me, but maybe the case is too artificial for real life. I think pack has "You are responsible..." warning already.

use strict; use Devel::Peek; $Devel::Peek::pv_limit = 3; # useless for UTF8 use warnings; use feature 'say'; say $^V; sub mem { say qx( tasklist /nh /fi "PID eq $$" ) =~ m[(\S+ K)$] } mem(); { my $r = \ join '', 'a' .. 'z'; $$r x= 1e7; my $s = $$r; my $p = pack 'p', $s; } mem(); { my $r = \ join '', 'a' .. 'z'; $$r x= 1e7; my $s = $$r; my $p = pack 'p', $s; } mem(); __END__ v5.32.1 7,836 K 7,888 K 7,888 K v5.42.0 8,036 K 261,972 K 515,880 K
  • Comment on Re^2: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2026-01-16 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.