Re: Perl's superior text parsing power

2009-09-06 Thread Raymond Wan
Hi Dave, Dave Tang wrote: explain to me the answer. My motivation for this question is primarily due to interest and if someday someone asks me how is Perl good for biology (most biological data is stored as flat files). As others have said, it is perhaps because Perl got into it first tha

Re: Perl's superior text parsing power

2009-09-03 Thread Jenda Krynicky
From: "Shawn H. Corey" > Dave Tang wrote: > > I wanted to ask why is Perl, in comparison to other programming > > languages, so powerful in text processing? > > Undoubtedly, when it was written, Perl was the most powerful text > processing language available. This is no longer the case (thanks

Re: Perl's superior text parsing power

2009-09-02 Thread Jeff Pang
?? "Shawn H. Corey" ? Dave Tang wrote: I wanted to ask why is Perl, in comparison to other programming languages, so powerful in text processing? Undoubtedly, when it was written, Perl was the most powerful text processing language available. This is no longer the case (thanks largely t

Re: Perl's superior text parsing power

2009-09-02 Thread Shlomi Fish
On Thursday 03 September 2009 06:44:40 Uri Guttman wrote: > > "SHC" == Shawn H Corey writes: > > SHC> Dave Tang wrote: > >> I wanted to ask why is Perl, in comparison to other programming > >> languages, so powerful in text processing? > > SHC> Undoubtedly, when it was written, Perl

Re: Perl's superior text parsing power

2009-09-02 Thread Chas. Owens
On Wed, Sep 2, 2009 at 23:20, Shawn H. Corey wrote: > Dave Tang wrote: >> >> I wanted to ask why is Perl, in comparison to other programming languages, >> so powerful in text processing? > > Undoubtedly, when it was written, Perl was the most powerful text processing > language available.  This is

Re: Perl's superior text parsing power

2009-09-02 Thread Chas. Owens
On Wed, Sep 2, 2009 at 21:39, Dave Tang wrote: > Hi everybody, > > I constantly read about Perl's powerful regular expression matching and > string manipulation operators, and how it is superior to other programming > languages in this aspect. snip * Regexes are first class citizens in Perl, in o

Re: Perl's superior text parsing power

2009-09-02 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> Dave Tang wrote: >> I wanted to ask why is Perl, in comparison to other programming >> languages, so powerful in text processing? SHC> Undoubtedly, when it was written, Perl was the most powerful text SHC> processing language available. This i

Re: Perl's superior text parsing power

2009-09-02 Thread Dave Tang
On Thu, 03 Sep 2009 13:18:44 +1000, Uri Guttman wrote: "TB" == Tim Bowden writes: TB> On Thu, 2009-09-03 at 11:39 +1000, Dave Tang wrote: >> I wanted to ask why is Perl, in comparison to other programming >> languages, so powerful in text processing? I read >> http://en.wikipedia.

Re: Perl's superior text parsing power

2009-09-02 Thread Shawn H. Corey
Dave Tang wrote: I wanted to ask why is Perl, in comparison to other programming languages, so powerful in text processing? Undoubtedly, when it was written, Perl was the most powerful text processing language available. This is no longer the case (thanks largely to Perl :). Today's scripti

Re: Perl's superior text parsing power

2009-09-02 Thread Uri Guttman
> "TB" == Tim Bowden writes: TB> On Thu, 2009-09-03 at 11:39 +1000, Dave Tang wrote: >> I wanted to ask why is Perl, in comparison to other programming >> languages, so powerful in text processing? I read >> http://en.wikipedia.org/wiki/Perl#Features, and that doesn't really >> exp

Re: Perl's superior text parsing power

2009-09-02 Thread Tim Bowden
On Thu, 2009-09-03 at 11:39 +1000, Dave Tang wrote: > Hi everybody, > > I constantly read about Perl's powerful regular expression matching and > string manipulation operators, and how it is superior to other programming > languages in this aspect. > > Furthermore, I read this in the wikipedi

Perl's superior text parsing power

2009-09-02 Thread Dave Tang
Hi everybody, I constantly read about Perl's powerful regular expression matching and string manipulation operators, and how it is superior to other programming languages in this aspect. Furthermore, I read this in the wikipedia entry of Perl: "The language provides powerful text processin

Re: Text parsing ?

2007-04-06 Thread Chas Owens
On 4/6/07, Dr.Ruud <[EMAIL PROTECTED]> wrote: Jeff Pang schreef: > $fname =~ s/^\s+|\s+$//g; Alternative: s/^\s+//, s/\s+$// for $fname; snip Just because I like hard numbers when comparing methods: Rate one_regex two_regex one_regex 34.0/s-- -67% two_regex 10

Re: Text parsing ?

2007-04-06 Thread Dr.Ruud
Jeff Pang schreef: > $fname =~ s/^\s+|\s+$//g; Alternative: s/^\s+//, s/\s+$// for $fname; Test: perl -wle' $s = " abc "; s/^\s+//, s/\s+$// for $s; print "<$s>" ' -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Text parsing ?

2007-04-06 Thread Jeff Pang
>I;m trying to parse one text file and insert it into database . >Here is the example of Data >CONTACT : Chemico Ltd. >MANAGER : Michael Kor >STATE: Blagoevgrad >CODE : 4005 >City: Blagoevgrad >Address : Neupaoer Str. 1 >Phone : 073/880755 >Name : Valeri lItov lItov - Cadr >Name : Nikoilai Miche

Text parsing ?

2007-04-06 Thread Stanislav Nedelchev
Hi to all, I;m trying to parse one text file and insert it into database . Here is the example of Data CONTACT : Chemico Ltd. MANAGER : Michael Kor STATE: Blagoevgrad CODE : 4005 City: Blagoevgrad Address : Neupaoer Str. 1 Phone : 073/880755 Name : Valeri lItov lItov - Cadr Name : Nikoilai Michev

Re: Doing some text parsing

2001-09-04 Thread John Way
Christopher, You wrote... "The L in L54 would tell me what the data actually means, but the 54 is the part of that data I need to file based on the L it was attached too." Here is one way to do it... $test = "L54"; $pattern = "L"; if ($test =~/^$pattern/) { $test =~ s/^$pattern//; } print "$

RE: Doing some text parsing

2001-09-04 Thread Rob Dixon
September 2001 19:21 > To: [EMAIL PROTECTED] > Subject: Doing some text parsing > > > Hello, > > This is my first message to [EMAIL PROTECTED] so I'm not completely sure > of the proper method of asking questions. > > First: Is there a web-based archive of this

RE: Doing some text parsing

2001-09-04 Thread Kaleb Murphy
ct me. } } -Original Message- From: Christopher Fisk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 04, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: Doing some text parsing Hello, This is my first message to [EMAIL PROTECTED] so I'm not completely sure of the proper method of asking

Doing some text parsing

2001-09-04 Thread Christopher Fisk
Hello, This is my first message to [EMAIL PROTECTED] so I'm not completely sure of the proper method of asking questions. First: Is there a web-based archive of this list? If So where? Second: I'm trying to parse some text for a decoding program. How would I decode something based on the firs