Re: Internet Search

2014-03-14 Thread Anant kumar
Hi Jim Gibson, I want to write a search engine of my own. Similar to Google but not as complex as that. Just for simple data mining for my research work. Sincerely yours, Anant Kumar B.Tech; Biotechnology On Fri, Mar 14, 2014 at 8:41 PM, Jim Gibson wrote: > > On

Re: Operand evaluation order

2014-03-14 Thread Shlomi Fish
Hi Uri (and all), On Fri, 14 Mar 2014 13:40:02 -0400 Uri Guttman wrote: > On 03/14/2014 01:03 PM, Ralph Grove wrote: > > I'm trying to determine how Perl evaluates operands for expressions. I > > expected the following code to output 3, 4, and 5, as it would if > > executed as a C++ or Java prog

Re: Operand evaluation order

2014-03-14 Thread Brian Fraser
On Fri, Mar 14, 2014 at 6:03 PM, Ralph Grove wrote: > I'm trying to determine how Perl evaluates operands for expressions. I > expected the following code to output 3, 4, and 5, as it would if executed > as a C++ or Java program. The actual output that I get (v5.16.2), however, > is 4, 4, and 5.

Re: Operand evaluation order

2014-03-14 Thread Jing Yu
Perlop: ... Auto-increment and Auto-decrement "++" and "--" work as in C. That is, if placed before a variable, they increment or decrement the variable by one before returning the value, and if placed after, increment or decrement after returning the value. $i = 0; $j = 0; print $i++;

Re: Operand evaluation order

2014-03-14 Thread Uri Guttman
On 03/14/2014 01:03 PM, Ralph Grove wrote: I'm trying to determine how Perl evaluates operands for expressions. I expected the following code to output 3, 4, and 5, as it would if executed as a C++ or Java program. The actual output that I get (v5.16.2), however, is 4, 4, and 5. This leads me to

Operand evaluation order

2014-03-14 Thread Ralph Grove
I'm trying to determine how Perl evaluates operands for expressions. I expected the following code to output 3, 4, and 5, as it would if executed as a C++ or Java program. The actual output that I get (v5.16.2), however, is 4, 4, and 5. This leads me to believe that operand evaluation is either

Internet Search

2014-03-14 Thread Jim Gibson
On Mar 14, 2014, at 5:28 AM, Anant kumar wrote: > Hi everyone, > I am trying to write a script to search on the > internet for different keywords (like Organism name, metabolic reactions and > Genes involved). Can anyone suggest me how to proceed. I don't want to attach

Re: Fail to match mixed quote pattern

2014-03-14 Thread Anant kumar
Hi everyone, I am trying to write a script to search on the internet for different keywords (like Organism name, metabolic reactions and Genes involved). Can anyone suggest me how to proceed. I don't want to attach the link to any website like what CGI module perform. Just w

Re: Fail to match mixed quote pattern

2014-03-14 Thread Charles DeRykus
On Fri, Mar 14, 2014 at 4:26 AM, Alex Chiang wrote: > I tried to extract string from perl script, so I wrote following script: > > 5# matching string > 6 # sting start with ' or ". > 7 # assume string is on same line. > 8 # > 9 my $pattern = '(\"|\').*\1'; > 10 my @array; > 11 open (m

Re: Fail to match mixed quote pattern

2014-03-14 Thread Alex Chiang
Lovely, it works. I didn't know how to describe this, now I knew there is a global mode XD Thanks. --- Regards ! Alex Chiang

Re: Fail to match mixed quote pattern

2014-03-14 Thread Paul Johnson
On Fri, Mar 14, 2014 at 10:26:39PM +1100, Alex Chiang wrote: > Hi all, > > I tried to extract string from perl script, so I wrote following script: > > 5# matching string > 6 # sting start with ' or ". > 7 # assume string is on same line. > 8 # > 9 my $pattern = '(\"|\').*\1'; > 10

Fail to match mixed quote pattern

2014-03-14 Thread Alex Chiang
Hi all, I tried to extract string from perl script, so I wrote following script: 5# matching string 6 # sting start with ' or ". 7 # assume string is on same line. 8 # 9 my $pattern = '(\"|\').*\1'; 10 my @array; 11 open (my $file, "<", "str"); 12 while (my $line = <$file>) {. 13