Multiprocessing script

2012-07-25 Thread punit jain
Hi, Below is my script where alarm is generated after 15 sec and changes the global variable in parent from 0 to 1. Is there any mistake in my multiprocess approach with time-based stop ? #!/usr/bin/perl use strict; use warnings; use Parallel::ForkManager; my $MAX_PROC=2; $|++; my $stopFlag=0;

Re: Can't delete row with DBI.pm

2012-07-25 Thread Tessio F.
2012/7/17 Rob Dixon > On 18/07/2012 00:18, Tessio F. wrote: > >> Hello, >> I have an database with a two column primary key: >> >> create database contacts( >> username char(20) not null, >> contact char(20) not null, >> primary key (username, contact) >> ); >> >> I'm trying to delete a row with

Fwd: [Perlweekly] #51 - What's new on the Perl Beginners' Site?

2012-07-25 Thread Andy Bach
Another nice beginners site and a great weekly perl digest list to subscribe to: What's new on the Perl Beginners' Site Shlomi Fish maintains the http://Perl-Begin.org site, an alternative to the 'official' learn.perl.org site. Once in a while he announces some changes and u

Re: Time based processes

2012-07-25 Thread punit jain
Hi Below is my script where alarm is generated after 15 sec and changes the global variable in parent from 0 to 1. Is there any mistake in my multiprocess approach with time-based stop ? #!/usr/bin/perl use strict; use warnings; use Parallel::ForkManager; my $MAX_PROC=2; $|++; my $stopFlag=0; m