in reply to Manipulating Date Numbers

Well, the simple approach is to just split:

#!/usr/bin/perl -w while( <DATA> ) { chomp; ($y,$m,$d) = split( /\//, $_ ); print "$m/$d/$y\n"; } __DATA__ 74/05/25 54/03/04 69/08/23 55/08/24

-derby

Replies are listed 'Best First'.
Re: Re: Manipulating Date Numbers
by ellem (Hermit) on Feb 27, 2003 at 20:03 UTC
    I didn't even THINK about split. I hate me, but you rock.

    Thanks!
    --
    ellem@optonline.net
    There's more than one way to do it, but only some of them actually work.