in reply to Re: Threads + opendir = Segmentation Fault (core dumped)
in thread Threads + opendir = Segmentation Fault (core dumped)

so why "$dh" works but "DH" didn't?
  • Comment on Re^2: Threads + opendir = Segmentation Fault (core dumped)

Replies are listed 'Best First'.
Re^3: Threads + opendir = Segmentation Fault (core dumped)
by BrowserUk (Patriarch) on Jun 24, 2009 at 19:36 UTC

    Good question.

    Probably because there is a latent bug in the cloning of bare word directory handles--but that's speculation.

    With investigation it might be something that could be fixed for the next major release of Perl, but it really doesn't make any sense to not use lexical handles with threads.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.