Re: Threads and Directory/File access...help

2003-03-17 Thread Sharmarke Aden
I was testing on 5.8 but the what ever code I wrote has to work on 5.6. Looks like I'm going to have to do some convincing in regards to switch from 5.6 to 5.8. I should have been more clear. My bad. "A . Bergman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On fredag, mar 14,

Re: Threads and Directory/File access...help

2003-03-17 Thread A . Bergman
On fredag, mar 14, 2003, at 18:50 Europe/Stockholm, Sharmarke Aden wrote: BTW I'm using Perl 5.6 on win 2000 machine (ActivePerl-5.6.0.623-MSWin32-x86-multi-thread to be exact). Just a question, are you sure that you are using perl 5.6 since threads isn't included with perl until 5.7.2 or so.

Re: Threads and Directory/File access...help

2003-03-14 Thread Sharmarke Aden
Your solution seems to have solved the problem. Thanks. "Robert Friberg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Your code isn't running multiple threads. You create > a thread and then wait for it to finish with join() > before creating the next one. I altered this w

RE: Threads and Directory/File access...help

2003-03-14 Thread Robert Friberg
Hi, Your code isn't running multiple threads. You create a thread and then wait for it to finish with join() before creating the next one. I altered this while trying it out. Why do you want threads in the first place? They are pretty costly and it seems like you could possibly have thousands of

Threads and Directory/File access...help

2003-03-14 Thread Sharmarke Aden
I'm new to perl and trying to access several directories at the same time and simply read the content of the director and do some processing on the files in those directories. The code below is a reference code to get started on the real work. The code below however crashes and I'm lost as to what