Re: loop until empty string

2006-03-23 Thread John W. Krahn
Christopher Spears wrote: > I've been reading the Intermediate Perl book and am > trying to solve one of the exercises. I wrote a > script that takes input from the keyboard and uses the > input as a regular expression to search for files in a > directory. If the script finds a match, the filenam

Re: loop until empty string

2006-03-23 Thread Jay Savage
On 3/23/06, Christopher Spears <[EMAIL PROTECTED]> wrote: > I've been reading the Intermediate Perl book and am > trying to solve one of the exercises. I wrote a > script that takes input from the keyboard and uses the > input as a regular expression to search for files in a > directory. If the s

Re: loop until empty string

2006-03-23 Thread Alan_C
On Thursday 23 March 2006 15:51, Christopher Spears wrote: [ exits after one round ] but . . > I want the program to keep asking the user for a > pattern until an empty string is entered. One way to do it: look for: <- added this -- there are 4 of them (4 newly added lines) wrapped the whole thi

Re: loop until empty string

2006-03-23 Thread Jaime Murillo
On Thursday 23 March 2006 15:51, Christopher Spears wrote: > I've been reading the Intermediate Perl book and am > trying to solve one of the exercises. I wrote a > script that takes input from the keyboard and uses the > input as a regular expression to search for files in a > directory. If the