Re: perl code help

2010-10-25 Thread ashwin ts
Helo Saran, The reason why it was printed in the next line is because u have no used chomp function on $c.Chomp would remove unwanted new line characters. I added chomp($c) to ur code and it works fine.. i mean as hw u wanted.. pls find the same code below with chomp..

Re: This Perl code causing high cpu usage , Why ?

2010-10-30 Thread ashwin ts
Hello Jathin, The problem with the code is that its gone in to an infinite loop.. The pattern matching that u have done u need to make it global or for all occurances. .. The /g option is used to match all the patterns in the given string u can try this.. while ($catalog =~ /Perl/g) Regards Ashw

materials on MQ series

2010-12-01 Thread ashwin ts
hello, can some one please let me know about where i can find materials on perl MQSeries... Thanks in advance.. Regards Ashwin Thayyullathil Surendran #91 988732

MQSeries ... help needed

2010-12-07 Thread ashwin ts
hello , My name is ashwin and i am new to perl. I have a requirement where in i need to send messages to MQSeries.. I assume that for the same .. i need to install the MQSeries package in my existing perl.i use a unix environment.The version of perl that i am using is v5.8.2, can you please guide

Re: doubt in substring

2011-01-12 Thread ashwin ts
the output will be cat sat on the all the characters in the string $str except four characters from the left and right will be displayed... Regards Ashwin Thayyullathil Surendran On Thu, Jan 13, 2011 at 9:57 AM, Sunita Rani Pradhan < sunita.prad...@altair.com> wrote: > Hi All > > > >

help with array elements

2011-03-11 Thread ashwin ts
Hi, I am a newbie to perl. I have an array which has few elements like '1,2,3,4,2,3,1,2,1,1,1,4,6,7' i need to know how many times each element has occurred in the same array. for example 1-5 times 2-3 times... could some one throw some light on how i can do this. thanks in advan

Re: help with array elements

2011-03-12 Thread ashwin ts
e of great help. Thanks again, Regards Ashwin Thayyullathil Surendran -- Forwarded message ------ From: ashwin ts Date: Sat, Mar 12, 2011 at 1:17 PM Subject: help with array elements To: beginners@perl.org Hi, I am a newbie to perl. I have an array which has few ele