Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Memory leak on definition of anonymous code?

by octothorpe (Initiate)
on Oct 06, 2003 at 19:09 UTC ( [id://297041]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;             # leak occurs whether strict is used or not
    
    ...
      $sub_ref = sub { &$sub_ref(); };
      return 0;
    }
    
  2. or download this
    sub leak {
      my $factorial_sub_ref;
    ...
    
      return 0;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found