"Out Of Memory"

2009-09-20 Thread Ajay Kumar
Hi Guyies I am working on a script that parse the excel sheets and write the data into another excel sheet. we have more than 40 excel file to parse , when i am parsing excel sheet i am getting out of memory error out of memory issues comes after some file has parsed if i parsed 5 or 6 file

RE: Help Please

2009-09-10 Thread Ajay Kumar
hi it is ananymous subroutine Here $_ means value of the argument that passed to the sunroutine And $$_ you can understand like below $name="ajay"; $class="name" $$class== ajay Thanks Ajay -Original Message- From: Shawn H Corey [mailto:shawnhco...@gmail.com] Sent: Thursday, Septem

"Time issues"

2009-08-31 Thread Ajay Kumar
hi All I have some zip data that contans name of different file when i unzipped data i got hundreds of file i passed each file in a subroutine and parse the data and write into excel sheet i am passing approximate 196 file individually during parsing and writiting into excel script is taking

RE: Perl module Net::Oping Error

2009-08-25 Thread Ajay Kumar
You you put below word in "" Quote it treat as a string and if it kept in single quote it treat as character so for the DNS(domain name space) it should treat as charaterwies not as string so that it can read data from the link -Original Message- From: Dr.Ruud [mailto:rvtol+use...@is

RE: WELCOME to beginners@perl.org

2009-08-21 Thread Ajay Kumar
ay -Original Message- From: beginners-h...@perl.org [mailto:beginners-h...@perl.org] Sent: Friday, August 21, 2009 3:43 PM To: Ajay Kumar Subject: WELCOME to beginners@perl.org Hi! This is the ezmlm program. I'm managing the beginners@perl.org mailing list. I'm working for my owner, w

RE: "list the user working on a single file"

2009-06-18 Thread Ajay Kumar
Thanks a lot -Original Message- From: Steve Bertrand [mailto:st...@ibctech.ca] Sent: Thursday, June 18, 2009 3:01 PM To: Ajay Kumar Cc: beginners@perl.org Subject: Re: "list the user working on a single file" Ajay Kumar wrote: > Hi all > I have one requirement that >

"list the user working on a single file"

2009-06-18 Thread Ajay Kumar
Hi all I have one requirement that Suppose I have one file sample.txt I just want one mail if anybody touch this file Can you guys suggest me how I can implement this ? Your suggestion would be appreciated Thanks in advanced

regular expression help

2009-06-17 Thread Ajay Kumar
2.3.56 or 2.0.12 and so on... plz advice ____ From: Ajay Kumar To: Irfan Sayed Cc: "beginners@perl.org" Sent: Wednesday, June 17, 2009 5:01:41 PM Subject: RE: regular expression help Hi Irfan This code solve your problem my $p="\"ProductName

RE: regular expression help

2009-06-17 Thread Ajay Kumar
Hi Irfan This code solve your problem my $p="\"ProductName\" = \"8:EXFO RTU System 1.2.42\""; my ($val)=$p=~ m/\d+.\d+.(\d+)\"/; my $inval=$val+1; $p=~s/$val/$inval/; print"===$p\n"; thanks Ajay -Original Message- From: Irfan Sayed [mailto:irfan_sayed2...@yahoo.com] Sent: Wednesday, June

RE: file handle in perl

2009-06-17 Thread Ajay Kumar
Hi Irfan You can do all four task like below 1: open FILE ,">filename.txt" or die$!; 2: my @lines= 3: do changes through sed Like sed -e 's/original pattern/new pattern/p' filename 4:if you did changes it automatically get saved 5: close(FILE); Thanks Ajay -Original Message- Fr

RE: suppressing Use of uninitialized value in pattern match (m//)

2009-06-08 Thread Ajay Kumar
Just redirect in some temporary file Like Open STDERR,">/den/null"; That's it -Original Message- From: Noah Garrett Wallach [mailto:djb...@sffun.org] On Behalf Of admin2 Sent: Thursday, May 28, 2009 5:38 AM To: Perl Beginners Subject: suppressing Use of uninitialized value in pattern m

FW: Question about split

2009-06-08 Thread Ajay Kumar
Because first element of the array is empty -Original Message- From: sanket vaidya [mailto:sanket.vai...@patni.com] Sent: Wednesday, May 27, 2009 4:16 PM To: beginners@perl.org Subject: Question about split Hi all, Kindly look at the code below: use warnings; use strict; $_ = '

RE: readdir() question

2009-05-28 Thread Ajay Kumar
Hi Here (.) means current directory (..) means parent directory But you are getting (..) and (...) Because you kept one (.) in map{{$_.\n"} Remove the (.) after $_ you will get correct output Thanks Ajay -Original Message- From: Telemachus [mailto:telemac...@arpinum.org] Sent: M

RE: Simple regex question

2009-05-19 Thread Ajay Kumar
Hi Alexander Or you can use this ($temp=~ m/([A-Za-z0-9]{5})\.([0-9]{1,2})[+-]([0-9]{1,4})\.([0-9]{1,4})/); This is more compact and accurate Thanks and regards Ajay -Original Message- From: Alexander Koenig [mailto:alexander.koe...@mpi.nl] Sent: Tuesday, May 19, 2009 7:25 PM To: beginn

RE: Using array from subroutine

2009-04-06 Thread Ajay Kumar
It's good for the beginners -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Sunday, April 05, 2009 9:24 PM To: Perl Beginners Subject: Re: Using array from subroutine Thomas H. George wrote: > In order to call them from menubuttons I moved my code into subroutines. >