in reply to Re: Populating a hash from array
in thread Populating a hash from array

thanks ... probably just a typo on my part.

Replies are listed 'Best First'.
Re: Re: Re: Populating a hash from array
by Limbic~Region (Chancellor) on Jan 07, 2004 at 15:27 UTC
    TASdvlper,
    In addition to what bart said, if your data really does look like this - there is probably a much better way to build your array (the lazy way).
    my @array1 = map { 'foo' . $_ } 1 .. 99;
    "Ok great, but I want the first element to just be 'foo' with no number"
    my @array1 = map { $_ ? 'foo' . $_ : 'foo' } 0 .. 99;
    Cheers - L~R