Hi,

I'm trying to substitute  all references  to a date (of the format
YYYYMMDD) in a file to the current date. I'm obviously doing something
wrong here ('cause it doesn't work!:}), as no change is made to the
config.ini file.
the $date variable is derived form another part of my script.

thanks,
Adrian

open (FILE, ">>config.ini") || die "Can't open config.ini";

while ($line = <FILE>) {
        chomp($line);
       $line=~s/\d{8}/$date/g;
}



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to