RE: one question about an exercise in 'Learning Perl 4th Edition'

2011-02-11 Thread Alex Wang02
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

RE: One Question

2006-01-09 Thread Larsen, Errin M HMMA/IT
-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 be a way to

RE: one question to end the day on . . .

2002-02-03 Thread Steve Howard
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: one question to end the day on . . . Timothy B

Re: one question to end the day on . . .

2002-02-02 Thread david wright
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

RE: one question to end the day on . . .

2002-02-01 Thread Timothy Johnson
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:

Re: one question to end the day on . . .

2002-02-01 Thread Eric Beaudoin
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 rings

RE: one question to end the day on . . .

2002-02-01 Thread Timothy Johnson
Sorry, that's while(INFILE){ -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 command. open(INFILE

RE: one question to end the day on . . .

2002-02-01 Thread Russ Foster
1: Open (INFILE, report.txt ; 2: While (INFILE) { 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

Re: one question to end the day on . . .

2002-02-01 Thread Michael R. Wolf
[EMAIL PROTECTED] (Russ Foster) writes: 1: Open (INFILE, report.txt ; 2: While (INFILE) { 3:$line =~ /\(.+?)\/ ; 4:$YourTextBetweenTheQuotes = $1 ; 5:# Do whatever you want 6: } 7: Close (INFILE) Properly capitalized, thats... 1: open (INFILE, report.txt ; 2: while (INFILE)