Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

No garbage collection for my-variables

by betterworld (Curate)
on Sep 15, 2008 at 19:48 UTC ( [id://711531]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    print "cleaning\n";
    undef &Encode::encode;
    sleep 5;
    
  2. or download this
    sub encode($$;$)
    {
    ...
        $_[1] = $string if $check and !($check & LEAVE_SRC());
        return $octets;
    }
    
  3. or download this
    perl -lwe 'my $code = join "", map {
       "sub foo$_ { my \$var = q(x) x 1_000_000; }" } 1..1000;
       eval $code; die if $@;
       for (1..1000) { sleep 1; "foo$_"->() }'
    
  4. or download this
    sub foo1 { my $var = q(x) x 1_000_000; }
    sub foo2 { my $var = q(x) x 1_000_000; }
    # and so forth...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://711531]
Approved by Joost
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-16 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found