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
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
"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
>
>
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