develooper Front page | perl.ithreads | Postings from March 2008

Re: Passing an IO:Handle to a Thread

Thread Previous | Thread Next
Dave Mitchell
March 1, 2008 07:27
Re: Passing an IO:Handle to a Thread
Message ID:
On Sat, Mar 01, 2008 at 02:51:19PM +0000, Chris Hall wrote:
> Whatever share $h does, it doesn't appear useful when $h is a ref to 
> something.
> Whatever my $h = &share({}) does, it's not the same as
>          my %b : shared ; my $h = \%b ;
> Whatever &share({a => 1}) does, it doesn't return a ref to an anonymous 
> hash containing a => 1 !!

Share is very similar to tie; when you share a container, its original
contents become hidden/lost

The Enterprise is involved in a bizarre time-warp experience which is in
some way unconnected with the Late 20th Century.
    -- Things That Never Happen in "Star Trek" #14

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About