Re: Incrementing during a regexp substitution

2004-05-13 Thread John W. Krahn
Jeff 'Japhy' Pinyan wrote: > > On May 13, Lee Johnson said: > > > ># > ># End date is a year after start date > ># > >$edate = $sdate; > >$edate =~ s/\///g; > >$edate++; > >$edate =~ s/.*(\d{4})$/01\/04\/$1/; > > Are you sure you want to just use April 1st (or January 4th) always? You > don't wa

Re: Incrementing during a regexp substitution

2004-05-13 Thread Jeff 'japhy' Pinyan
On May 13, Lee Johnson said: ># ># End date is a year after start date ># >$edate = $sdate; >$edate =~ s/\///g; >$edate++; >$edate =~ s/.*(\d{4})$/01\/04\/$1/; Are you sure you want to just use April 1st (or January 4th) always? You don't want to use the day and month in $sdate? >where $sdate i