Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 16:41, Akshay Mohit wrote: > As I told earlier there is a code already written on Performance testing > using Perl threads and I need to maintain and own it because the person who > was doing it earlier left the organization, so I am bound to maintain the > code which is using th

Re: Threads in Perl

2015-07-06 Thread Akshay Mohit
As I told earlier there is a code already written on Performance testing using Perl threads and I need to maintain and own it because the person who was doing it earlier left the organization, so I am bound to maintain the code which is using threads and presently cant make use of any other concept

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 16:14, Akshay Mohit wrote: > I need to maintain a code for performance testing which is fully written > using Threads That doesn't seem to help me a lot. Because "Performance testing" in itself doesn't require threads. If you just need to load up processors, then forks will do

Re: Threads in Perl

2015-07-06 Thread Akshay Mohit
Thanks Kent for the Quick reply. I need to maintain a code for performance testing which is fully written using Threads and I have no clue of the concepts so I wanted some stuffs for it. -Akshay On Tue, Jul 7, 2015 at 9:34 AM, Kent Fredric wrote: > On 7 July 2015 at 15:57, Akshay Mohit wrote:

Re: Threads in Perl

2015-07-06 Thread Kent Fredric
On 7 July 2015 at 15:57, Akshay Mohit wrote: > I am not so experienced in Perl and got a task to do in Threads. The first question you have to ask is "Why do you need threads". What are you doing? Many people go "I need some sort of parallel process" and go "that needs threads!". But that is n

Threads in Perl

2015-07-06 Thread Akshay Mohit
Hi, I am not so experienced in Perl and got a task to do in Threads. Can anyone pls help me in knowing the Thread concepts in Perl so I can apply it for my task. Thanks in advance.! -Akshay

Re: Fire and forget subs

2015-07-06 Thread Jim Gibson
> On Jul 6, 2015, at 9:43 AM, Unknown User wrote: > > What is a good way to fire and forget a sub from a module in perl, in a non > blocking mode, preferably without forking or using threads. > I may have to run the sub a few times to determine the approx delay for it to > run, so i suppose i

Re: Fire and forget subs

2015-07-06 Thread Andrew Solomon
First question: why do you want to avoid forking and threads? Second question: Are you saying you want the subroutine to run in a process which doesn't have the module as a parent? On Mon, Jul 6, 2015 at 5:43 PM, Unknown User wrote: > What is a good way to fire and forget a sub from a module in

Fire and forget subs

2015-07-06 Thread Unknown User
What is a good way to fire and forget a sub from a module in perl, in a non blocking mode, preferably without forking or using threads. I may have to run the sub a few times to determine the approx delay for it to run, so i suppose i need a blocking mode for it too. But afterwards, it can run in no

Re: Use of uninitialized value $j in numeric eq (==) at myfile line 125

2015-07-06 Thread Илья Рассадин
Hi everybody! I think, problem code is ``` if($buf eq chr hex $xhtmlbegin[$j + 1]) { $doread = 1; $j = $j + 1; } else { if($j == 0) { $doread = 1; } else { #this line is very suspicious $j = $

Re: Use of uninitialized value $j in numeric eq (==) at myfile line 125

2015-07-06 Thread Kent Fredric
On 6 July 2015 at 19:43, Nagy Tamas (TVI-GmbH) wrote: > > Yes, I can produce an XML file. I mean, can you paste-bin or attach an XML file which is minimal in size, yet, still causes this problem to occur, so that we may also attempt to see what is happening using said file. I presently have no

AW: Use of uninitialized value $j in numeric eq (==) at myfile line 125

2015-07-06 Thread Nagy Tamas (TVI-GmbH)
Hi, I don't need XML::Writer, I corrected the spelling of Writer. Yes, I can produce an XML file. tags are always found. tags are found for every , so for all closing tags. I thought that this erronous maching is the result of an uninitialized value of $j or $j2. As I can print $j2, I see t

Re: Use of uninitialized value $j in numeric eq (==) at myfile line 125

2015-07-06 Thread Kent Fredric
On 6 July 2015 at 19:15, Nagy Tamas (TVI-GmbH) wrote: > use XML::writer; Is that supposed to be XML::Writer , or is it really XML::writer? Either way, its irrelevant because its not used anywhere. Can you produce an XML file that will repeat the problem, the attached script I can't trigger a f

AW: Use of uninitialized value $j in numeric eq (==) at myfile line 125

2015-07-06 Thread Nagy Tamas (TVI-GmbH)
Hi, Full code. It strips UTF-8 newlines between xhtml tags and leaves other tags with UTF-8 newlines. It uses Knuth-Morris-Pratt, because we can read the file only once. I need this script because of compatibility of a special tool. use bytes; use warnings; use strict; use XML::writer; use IO: