artax has asked for the wisdom of the Perl Monks concerning the following question:
THREAD support enabled [sub1] thread 18917 params: 0 1 Attempt to free unreferenced scalar: SV 0x8661170, Perl interpreter: 0 +x86388b8 during global destruction.
#!/usr/bin/perl -w use strict; use Config; use threads; my( $th, $thres ); $th = threads->new( \&sub1, 0, 1 ); $thres = $th->join; # ============ sub sub1 { my @params = @_; my ( $stmp ); $stmp = join ' ', @params; print "[sub1] thread $$ params: $stmp \n"; }
Edited by Chady: replaced pre tags with code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: threads: Attempt to free unreferenced scalar: SV 0x8661170, Perl interpreter: 0x86388b8 during global destruction.
by BrowserUk (Patriarch) on Sep 23, 2006 at 15:58 UTC |