-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, January 31, 2002, at 09:10 , Michael G Schwern wrote:
> On Fri, Feb 01, 2002 at 11:01:35AM +0800, Anthony J. > Breeds-Taurima wrote: >> On Thu, 31 Jan 2002, Michael G Schwern wrote: >> >>> Folks, I'm clawing my eyes out here. Stop hitting the regex >>> crack pipe! >> >> the poster asked for a regex solution. > > $date =~ s{(.*)}{sprintf '%02d/%02d/%d', split '/', $1}e; I have not laughed out loud at a single line of Perl code since, well, possibly -INF. Thank you. - -- Craig S. Cottingham [EMAIL PROTECTED] PGP key available from: <http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41> ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F 0CEF A2FF BE41 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE8WilVE28M76L/vkERArjlAKDPyBaHFhOfB5WFYFbCMwXRmKiCAgCeJZgx F99ueqZ+7cs50YwgfvF21Bs= =WiYz -----END PGP SIGNATURE-----