DBI install

2008-07-01 Thread manojkumarg
Can any one help me out in Installing DBI in a standalone box. There is no internet connetion. I tried downloading DBI-1.48 module and tried using ppm and makefile.PL its not working. I am doing it correct or missing something?

Re: CSV duplicate

2008-04-17 Thread manojkumarg
I haven't seen hash used in this format. $data{ $val1 }{ $val2 }++; Can yor please tell what this means? It worked for me.. I was also trying with exists command which returns boolean value. Thanks all. - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> Date: Thursday, Apri

Removing "+" in $ENV{QUERY_STRING}

2008-02-25 Thread manojkumarg
Hello List, I am trying to build a webpage where I can enter hostname in a text box and up on hitting the key this searches multiple .csv files and prints them in the webpage itself. I am facing a problem with $ENV(QUERY_STRING} which take “+” when the textbox is entered with spaces in the begi

Re: Perl loop

2007-12-14 Thread manojkumarg
Digging on thisto make it work. Thanks again. - Original Message - From: jeff pang <[EMAIL PROTECTED]> Date: Friday, December 14, 2007 7:45 pm Subject: Re: Perl loop To: [EMAIL PROTECTED] Cc: "beginners@perl.org" > --- [EMAIL PROTECTED] wrote: > > > Thanks Jeff. > > > > How wi

Re: Perl loop

2007-12-14 Thread manojkumarg
Thanks Jeff. How will this be considered. if(system(CondA) && system(CondB)) ... I am getting 0 as the $? RC...but goes to the else part of the if-statement. Both the conditions (Unix commands are executed). Is it taking the CondB RC? Thanks Manoj if( - Original Message - From: jeff

Perl loop

2007-12-14 Thread manojkumarg
Hello List, I am having two conditions in the perl program. after the check it will be regenerated to a valid or notvalid file depending on the check. Checking " if (system($touchcmd) && system($chkstat)) " as condition. Is this a valid one? also was trying to get this done buy calling subrout

Custom pragmas

2007-11-27 Thread manojkumarg
Hello List,Working hard to edit a perl program. I came across use Custom::E::Objname in pragma section. How can I find where is this Custom pragma defined?Please help. ThanksManoj

Searching for records in 15000 lines.

2007-10-16 Thread manojkumarg
Searching for records in 15000 lines. Have a list of hostnames in a text file. Wanted to take the lines matching the hostnames in csv file. must use sub routines or is there any module for this? host.txt adms0922 adms0943 adms0782 temp.csv 12312,adms0782,10.10.50.53,Application,,,12.3 I want

Split question

2007-10-12 Thread manojkumarg
One of the column in csv file is Fri, Oct 12 10:32 AM. I am trying ti split the csv file for checking a column value. when spliting I wanted to take Fri, Oct 12 10:32 AM as a single value. How can I use split? Thanks Manoj -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Matching 5th and 6th characted

2007-10-11 Thread manojkumarg
The is what I was looking for..Thanks All - Original Message - From: Jenda Krynicky <[EMAIL PROTECTED]> Date: Thursday, October 11, 2007 7:40 pm Subject: Re: Matching 5th and 6th characted To: beginners@perl.org > Date sent:Thu, 11 Oct 2007 18:30:26 +0500 > From:

Matching 5th and 6th characted

2007-10-11 Thread manojkumarg
Hello List, Struck up with a script in using regular expression. There are 6000 lines in a csv file in which using an if conditon for a particular column. Think one of the column ($arcval) value is APBNSTWAP23. I wanted to take lines from the csv file for those columns whose value is ST for it

CSV file

2007-09-21 Thread manojkumarg
There is a report that is generated from a script as a plain text file. I need to take this output file as input for my script and join them and create a CSV file and mail to me daily. How can I create CSV file with out using modules. Taking a sample report Hostname IP address

Re: RE: White space split

2007-09-20 Thread manojkumarg
Yep...I got it !! .. - Original Message - From: [EMAIL PROTECTED] Date: Thursday, September 20, 2007 5:44 pm Subject: Re: RE: White space split To: [EMAIL PROTECTED], Andrew Curry <[EMAIL PROTECTED]> Cc: beginners@perl.org > --- [EMAIL PROTECTED] wrote: > > > Thanks Andrew and Jeff

Re: RE: White space split

2007-09-20 Thread manojkumarg
Thanks Andrew and Jeff. ($cmd1, $rest)=split/\s+/,cmd$; worked for me. my ($cmd1) = split/\s+/,$cmd; is still giving me the length... I wanted to use something like above ... Jeff, Is there any thing else I need to change in the line... Thanks - Original Message - From: Andrew Curry <[

White space split

2007-09-20 Thread manojkumarg
Hello, I am trying to do this #!/bin/perl $cmd="maheshverama #XX#"; $cmd1=split /\s+/,$cmd; print $cmd1; Wanted the first part to be taken its giving me some numbers as output. Thanks Manoj -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m