Re: Reg. Exp. to find dir. question

2003-07-31 Thread Quenten Griffith
Thank you that worked, and thank you for the tip about chomp/chop --- Rob Dixon <[EMAIL PROTECTED]> wrote: > > "Quenten Griffith" <[EMAIL PROTECTED]> wrote in > message > news:[EMAIL PROTECTED] > > Hello all I have a script that reads in a control > file > > that list a dir. to > > change to insid

Re: Reg. Exp. to find dir. question

2003-07-31 Thread Rob Dixon
Rob Dixon wrote: > > > This line is what I am having an issue with $dir = $1 > > if > > /^Dir:\s+(\W\w+\W\w+)/; > > That will match /your/path but it will not match /your > > or /your/path/is. > > > Is there a better reg.exp. I can use that will match > > anything with a / in and everything after

Re: Reg. Exp. to find dir. question

2003-07-31 Thread Rob Dixon
"Quenten Griffith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all I have a script that reads in a control file > that list a dir. to > change to inside the control file I have > > Dir: /cf/courseware > > The part of the Perl script that I run to pull in that > info is > >

Reg. Exp. to find dir. question

2003-07-30 Thread Quenten Griffith
Hello all I have a script that reads in a control file that list a dir. to change to inside the control file I have Dir: /cf/courseware The part of the Perl script that I run to pull in that info is # Open the control file or log my $control_file= "/home/qgriff/FTP.CTL"; unless ( open CTL, $con