Hi,
I just found the solution and reason in Chapter 8.
Thanks & Regards,
Alex Wang
-Original Message-
From: Alex Wang02
Sent: Saturday, February 12, 2011 12:42 PM
To: beginners@perl.org
Subject: one question about an exercise in 'Learning Perl 4th Edition'
Hi,
I hav
Hi,
I have one question about the exercise No. 4 in chapter 7 .
Here is the exercise :
Make a program that prints each line with a word that is capitalized but not
ALL capitalized. Does it match Fred but neither fred nor FRED?
As suggested in the exercise, I created a small text file adhered
> -Original Message-
>From: Gomez, Juan [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 09, 2006 7:48 AM
>To: beginners@perl.org
>Subject: One Question
>
>
>Good Morning all!!!
>
Good Morning, Juan,
>
>I have working on several shell scripts using KSH
Good Morning all!!!
I have working on several shell scripts
using KSH
but i like to know is there can be a way to
use Perl/tk
to make them run like a inside of a
menu?
thanks guys
Armando Gomez
Guajardo Process EngineerWork Ph 956 547
6438 Beeper 956 768
4070
Again, nothing wrong with what you did, I just wanted to point out that
escaping was not a "Have to".
Steve H.
-Original Message-
From: david wright [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 5:21 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re
Timothy B wrote:
"Hello out there - I have learned a lot of Perl today, but I am still
trying
to figure one more thing out.
How can I go through a file and extract all the text between certain
delimiters - for example I have:
Bilbo, "Why I like rings" Freemont Press, 1998.
Frodo, "Why I don't" B
[EMAIL PROTECTED] (Russ Foster) writes:
> 1: Open (INFILE, "report.txt" ;
> 2: While () {
> 3:$line =~ /\"(.+?)\"/ ;
> 4:$YourTextBetweenTheQuotes = $1 ;
> 5:# Do whatever you want
> 6: }
> 7: Close (INFILE)
Properly capitalized, thats...
1: open (INFILE, "report.txt" ;
2: while ()
1: Open (INFILE, "report.txt" ;
2: While () {
3: $line =~ /\"(.+?)\"/ ;
4: $YourTextBetweenTheQuotes = $1 ;
5: # Do whatever you want
6: }
7: Close (INFILE)
In English : the regular express on line 3 will grab the text between quotes
(expressed as \" ) with the expression .+?
The p
Sorry, that's while(){
-Original Message-
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:28 PM
To: 'Booher Timothy B 1stLt AFRL/MNAC'; [EMAIL PROTECTED]
Subject: RE: one question to end the day on . . .
Use the split comman
At 18:28 2002.02.01, Booher Timothy B 1stLt AFRL/MNAC wrote:
>Hello out there - I have learned a lot of Perl today, but I am still trying
>to figure one more thing out.
>
>How can I go through a file and extract all the text between certain
>delimiters - for example I have:
>
>Bilbo, "Why I like
EMAIL PROTECTED]
Subject: one question to end the day on . . .
Hello out there - I have learned a lot of Perl today, but I am still trying
to figure one more thing out.
How can I go through a file and extract all the text between certain
delimiters - for example I have:
Bilbo, "Why I like rings&q
Hello out there - I have learned a lot of Perl today, but I am still trying
to figure one more thing out.
How can I go through a file and extract all the text between certain
delimiters - for example I have:
Bilbo, "Why I like rings" Freemont Press, 1998.
Frodo, "Why I don't" Bridgedale Freema
12 matches
Mail list logo