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 have one question ab
> -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
>but i like to know is there can b
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
Use the split command.
open(INFILE,"hobbitbooks.txt");
while(INFILE){
@results = split /\"/,$_;
print $results[1];
}
-Original Message-
From: Booher Timothy B 1stLt AFRL/MNAC
[mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:28 PM
To: [EMAIL PROTECTED]
Subject