RE: regular expression

2014-05-06 Thread Vishal Gupta
Please find below the tested code, same regular expression match both the patterns: my $string1 = "^Modifications made by Danny Wong (danwong) on 2014/05/06 18:27:48 from database brms"; my $string2 = "^Modifications made by danwong on 2014/05/06 18:27:48 from database brms"; if ($string1=~/by.*

Regarding help in Threading

2011-10-06 Thread Vishal Gupta
Hi, I have to write a perl program (Parent script) which does the below 4 tasks simultaneously: 1. Executing a perl script in one shell. (Parent script) 2. Invoking a thread performing some tasks periodically lets say once in 15 min, and send a message when any task is completed, to parent

RE: need explanation

2010-07-16 Thread Vishal Gupta
vishal.knit2...@hotmail.com > CC: beginners@perl.org > > Thanks, Vishal. > > I was confused with usage {}. So you are saying that it will > dereference the array. > Isn't @$tableRef not enough in that case? > > Regards, > Sharan > > > On Fri, Jul 1

RE: need explanation

2010-07-16 Thread Vishal Gupta
Hi Sharan, Please find below the answers: 1) what does @{$tableRef} really do? This will de-reference the "$tableRef", which is suppose to be an array reference. 2) what does @table contain? @table will contains the original array, which is referenced by "$tableRef". Regards, Vishal