on Fri, 09 Aug 2002 11:30:54 GMT, [EMAIL PROTECTED] (Jerry Preston) wrote:
> I am looking for a simple way to replace a date in a string: > > "%makesql(FORD,waf_end,010602 &nowdate,all,0,pdv.CHEVY);\n", > ^^^^^^^^ > to > "%makesql(FORD,waf_end,080902 &nowdate,all,0,pdv.CHEVY);\n", > ^^^^^^^^ Don't use ^^^^^ unless you are writing your message with a monospaced font. (It tends to confuse people ;-) Try: $string = "%makesql(FORD,waf_end,010602 &nowdate,all,0,pdv.CHEVY);\n" $string =~ s/010602/080902/; -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]