On Tue, Oct 10, 2006 at 01:46:10PM -0500, Eric Waguespack wrote:

> this sounds like a perfect use for a hash....
> 
> %month = (
>    1 => "Jan",
>    2 => "Feb",
> );
> 
> print $month{"1"}, "\n";

A data structure indexed by small, consecutive integers?  Smells like an array
to me.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to