about perl module uninstallation

2008-06-20 Thread Rajnikant
Hello All, I had installed perl modules like Net::SFTP, Math::BigInt etc. I need to uninstall it. How can I uninstall these modules from my perl? Thanks in advance. Rajnikant Jachak | Software Engg | Persistent Systems Limited [EMAIL PROTECTED] | Cell: +91 9822204

Re: reading in a file, line by line by picking certian lines

2008-06-20 Thread icarus
> I am looking at a way of reading a line doing a regex to find the > specific line then pick out the line, sudo code would be some thing > like the following: > > read in line > check regex > > if regex is correct > {jump 10 lines > print the output > > } > > any ideas on jumping the 10 li

Re: Regex help

2008-06-20 Thread icarus
On Jun 20, 9:10 am, [EMAIL PROTECTED] (Ravi Malghan) wrote: > Hi: I am trying to extract some stuff from a string and not getting the > expected results. I have looked > throughhttp://www.perl.com/doc/manual/html/pod/perlre.html and can't seem to > figure this one out. > I have a string which is

How do I implement this?

2008-06-20 Thread bdy120602
How would I implement this example to parse an HTML file? I know I'm missing something because I don't see a place in the module, or whatever this is, for the HTML file to be referenced. Just assume I know very little. package CommentStripper; require HTML::Filter; @ISA=qw(HTML::Filter); sub

Re: [Fwd: Re: how I extract text information?]

2008-06-20 Thread Eng. Fadhl Al_Akwaa
I could simplify my problem as this. Is there perl function who could return the fourth column in this sample line: 16043 8.75E-07 1.00E-03 258 2157 cellular component organization and biogenesis YHR012W|YMR290C|YKR020W|YKL016C|YJL191W|YNL163C|YNL113W|YMR200W|YPL007C|YDL1

Re: Regex help

2008-06-20 Thread Gunnar Hjalmarsson
Ravi Malghan wrote: I have a string which is a sequence of words and each item is comma seperated field1, lengthof value1, value1,field2, length of value2, value2,field3,length of value3, value3 and so on After each field name I have the length of the value I want to split this string into an a

Re: [Fwd: Re: how I extract text information?]

2008-06-20 Thread Rob Dixon
Fadhl M. Al-Akwaa wrote: > > Rob Dixon wrote: >> >> Fadhl M. Al-Akwaa wrote: >>> >>> no I show you the data in excell file to show you the desire column. >>> the data is text file. >> >> Then could you show us the text file please? > > but please note that the number of header lines is not equal.

[Fwd: Re: how I extract text information?]

2008-06-20 Thread Rob Dixon
Original Message Subject:Re: how I extract text information? Date: Fri, 20 Jun 2008 14:29:47 -0700 (PDT) From: Eng. Fadhl Al_Akwaa <[EMAIL PROTECTED]> To: Rob Dixon <[EMAIL PROTECTED]> but please note that the number of header lines is not equal. and the data

Re: Regex help

2008-06-20 Thread Rob Dixon
Ravi Malghan wrote: > > Hi: I am trying to extract some stuff from a string and not getting the > expected results. I have looked through > http://www.perl.com/doc/manual/html/pod/perlre.html and can't seem to figure > this one out. > > I have a string which is a sequence of words and each ite

Re: how I extract text information?

2008-06-20 Thread Rob Dixon
Eng. Fadhl Al_Akwaa wrote: > > no I show you the data in excell file to show you the desire column. > the data is text file. Then could you show us the text file please? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how I extract text information?

2008-06-20 Thread Rob Dixon
Eng. Fadhl Al_Akwaa wrote: > > This is sample of my data. I need to extract the yellow color column. > http://rapidshare.de/files/39766858/cluster1.xls.html Is your data always going to be in an Excel file? Your original post said that you had a text file to work with, which is a very different th

Re: looping over arrayref of hashes

2008-06-20 Thread Rob Dixon
Graeme McLaren wrote: > Hi all, I'm in need of a loop, can't seem to find what I'm looking for > online. I want to loop over this array ref inserting each hash value into > the DB at each iteration.I've got the following data structure which is > assigned to $aref: > > my $VAR1 = [ > { >

Re: convert string to number

2008-06-20 Thread Rob Dixon
Dr.Ruud wrote: > Rob Dixon schreef: > >> - Forcing a conversion to a string or a numeric is easy in Perl, using >> >> $val.'' >> or >> $val+0 >> >> respectively. > > For my needs (which includes mod_perl) this is not complete. Having all > three personalities IOK/NOK/POK active at the

Re: Regex help

2008-06-20 Thread John W. Krahn
Ravi Malghan wrote: Hi: I am trying to extract some stuff from a string and not getting the expected results. I have looked through http://www.perl.com/doc/manual/html/pod/perlre.html and can't seem to figure this one out. I have a string which is a sequence of words and each item is comma sep

Re: populating a hash slice from a filehandle

2008-06-20 Thread Bryan R Harris
> Bryan R Harris wrote: >> >> John W. Krahn wrote: >>> >>> Bryan R Harris wrote: John W. Krahn wrote: > > The left hand side of the assignment determines context so the @l2r{...} > part. That strikes me as odd... When perl goes to populate @l2r{"a","b"}, it >>

Re: convert string to number

2008-06-20 Thread Dr.Ruud
Rob Dixon schreef: > - Forcing a conversion to a string or a numeric is easy in Perl, using > > $val.'' > or > $val+0 > > respectively. For my needs (which includes mod_perl) this is not complete. Having all three personalities IOK/NOK/POK active at the same time before forking, saves

Re: Regex help

2008-06-20 Thread yitzle
On Fri, Jun 20, 2008 at 3:10 PM, Ravi Malghan <[EMAIL PROTECTED]> wrote: > Hi: I am trying to extract some stuff from a string and not getting the > expected results. I have looked through > http://www.perl.com/doc/manual/html/pod/perlre.html and can't seem to figure > this one out. > I have a s

Regex help

2008-06-20 Thread Ravi Malghan
Hi: I am trying to extract some stuff from a string and not getting the expected results. I have looked through http://www.perl.com/doc/manual/html/pod/perlre.html and can't seem to figure this one out. I have a string which is a sequence of words and each item is comma seperated field1, lengtho

Re: Mailing List Replies?

2008-06-20 Thread Bobby
On Monday 16 June 2008 12:53:27 Rick Bragg wrote: > Just curious, > > Is there a reason why the reply-to on this mailing list is set to go > back to the poster and not back to the list? I think its best for a > list like this to keep all the messages on the list, so when I reply, I > need to manua

Re: reading in a file, line by line by picking certian lines

2008-06-20 Thread John W. Krahn
Pat Rice wrote: Hi all Hello, I am looking at a way of reading a line doing a regex to find the specific line then pick out the line, sudo code would be some thing like the following: read in line check regex if regex is correct {jump 10 lines print the output } any ideas on jumpin

Re: populating a hash slice from a filehandle

2008-06-20 Thread John W. Krahn
Bryan R Harris wrote: John W. Krahn wrote: Bryan R Harris wrote: John W. Krahn wrote: The left hand side of the assignment determines context so the @l2r{...} part. That strikes me as odd... When perl goes to populate @l2r{"a","b"}, it seems to me that it would go through this process:

Re: populating a hash slice from a filehandle

2008-06-20 Thread Bryan R Harris
> Bryan R Harris wrote: >> >> John W. Krahn wrote: >>> >>> Bryan R Harris wrote: > Jenda Krynicky wrote: > > Context. The returns a single line in scalar context and > a list of all lines in a list context. And there is no such thing as > a two-item-list context.

Re: Removing special character from first line in CSV file

2008-06-20 Thread Rob Dixon
suyog_linux wrote: > > I am new to perl coding and I am working with a CSV file where I have > to remove all the double quotes (") from the first line of the file. > > I need a code that I can embed in a .pl file. Could somebody help me > with this ? It's unlikely that things are that simple, bu

Re: File search program!

2008-06-20 Thread Paul Lalli
On Jun 19, 2:07 pm, [EMAIL PROTECTED] (Gunwant Singh) wrote: > Paul, > > I did not rewrite any windows program Yes you did. You rewrote the command `dir /s`, which does exactly what your program does. I'm not saying it was your *intent* to rewrite dir /s. I'm saying that's what your program do

Re: Fwd: How attach files and send mails on perl????

2008-06-20 Thread David Romero
Use the Mail::Sender Module, is to easy with it (ref ($sender->MailFile( {to =>'[EMAIL PROTECTED]', subject => 'this is a test', msg => "Hi Johnie.\nI'm sending you the pictures you wanted.", file => 'image1.jpg,image2.jpg' })) and print "Mail sent OK." ) or die "$Mail::Sender::Erro

Re: Fwd: How attach files and send mails on perl????

2008-06-20 Thread Rob Dixon
Armin Garcia wrote: > > well i have some problems again, thats my new code: > > > #!/usr/bin/perl -w Drop the -w qualifer from this line. It is best done with 'use warnings' that you have below. Also use strict; use warnings; here instead of after including MIME::Lite. > #Modulos > use

Re: reading in a file, line by line by picking certian lines

2008-06-20 Thread David Romero
On Fri, Jun 20, 2008 at 8:06 AM, Pat Rice <[EMAIL PROTECTED]> wrote: > > Hi all > > I am looking at a way of reading a line doing a regex to find the > specific line then pick out the line, sudo code would be some thing > like the following: > > read in line > check regex > > if regex is correct >

Re: How attach files and send mails on perl????

2008-06-20 Thread Rob Dixon
Armin Garcia wrote: > Hi people... > > Well i see i create a problem My apologies for this... > > First, I post this problem becouse, im relative newer programming on perl, > and becouse as you now, when you end the school and start in a new job, you > sometimes dont have the suffient time t

Re: hash increament

2008-06-20 Thread Rob Dixon
beast wrote: > > What is the reason this following works > $hours{$hour}->{count} + 1 > > but this not works? > $hours{$hour}->{count}++ > > > it actually part of this code: > > $hours{$hour} = { occur => $occur_utc, > delay => $hours{$hour}->{delay} + $delay,

Re: Mailing List Replies?

2008-06-20 Thread Rob Dixon
Michelle Konzack wrote: > Am 2008-06-16 16:53:27, schrieb Rick Bragg: >> Just curious, >> >> Is there a reason why the reply-to on this mailing list is set to go >> back to the poster and not back to the list? I think its best for a >> list like this to keep all the messages on the list, so when I

Re: convert string to number

2008-06-20 Thread Rob Dixon
Dr.Ruud wrote: > > Rob Dixon schreef: >> >> Dr.Ruud wrote: >>> >>> Rob Dixon wrote: A scalar cannot have multiple 'personalities' - it can have a maximum of two (its inherent type and a string equivalent) at any one time, but usually has only one. >>> >>> It can at least have

Re: reading in a file, line by line by picking certian lines

2008-06-20 Thread Chas. Owens
On Fri, Jun 20, 2008 at 09:06, Pat Rice <[EMAIL PROTECTED]> wrote: > Hi all > > I am looking at a way of reading a line doing a regex to find the > specific line then pick out the line, sudo code would be some thing > like the following: > > read in line > check regex > > if regex is correct > {

reading in a file, line by line by picking certian lines

2008-06-20 Thread Pat Rice
Hi all I am looking at a way of reading a line doing a regex to find the specific line then pick out the line, sudo code would be some thing like the following: read in line check regex if regex is correct {jump 10 lines print the output } any ideas on jumping the 10 lines, how do I ign

Re: File search program!

2008-06-20 Thread Dr.Ruud
Gunwant Singh schreef: > find(\&Wanted, '\/'); Why would you want to escape a slash? There is no need, and it looks ugly too. :) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/