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

Replacing closures (to work around threads crash)

by eyepopslikeamosquito (Chancellor)
on Nov 22, 2004 at 03:52 UTC ( #409473=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    # Simulate "Free to wrong pool" crash from Telnet.pm, line 1987
    ...
    }
    
    do_threads(2);
    
  2. or download this
    local $SIG{"__WARN__"} = sub { push @warns, @_ };
    
  3. or download this
    local $SIG{"__WARN__"} = eval <<'CLOSURE_HACK';
    sub { push @warns, @_ }
    CLOSURE_HACK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://409473]
Approved by ysth
Front-paged by bronto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2019-06-16 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (76 votes). Check out past polls.

    Notices?