in reply to Re: Combining s///
in thread Combining s///
for (@ARGV) { s! (\d{2})/ (\d{2})/ (\d{2}) ! my $y = ( $3 > 55 ? '19' : '20' ) . $3; "$y/$1/$2" !xeg; print "$_\n"; }
More tips:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Combining s///
by starbolin (Hermit) on Mar 10, 2008 at 07:03 UTC |