> (Forgive the excitement)
>
No problem!
> I just reversed the %n2m construct - the original builds a
> hash using map
> that lets you convert numbers to months, etc. (I probably
> found it here).
>
> In keeping with my feeling that with 'map' one can do almost
> anything (if I
> knew how) I'm happy to have managed to build something using
> 'map' (without
> external help I mean). Seems easy, now. ;-)
>
> # months into numbers...
>
> $month = "Jan" # for example
>
> my %m2n;
> my $x = "00";
>
> map { $m2n{$_} = ++$x } qw(Jan Feb Mar Apr May Jun Jul Aug
> Sep Oct Nov Dec);
>
> my $mon = $m2n{$month};
>
Very Handy! I'm going to file that one away for later!
Thanks
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]