Quite. What you've written looks fine Ian. But you've probably shown us what
you /meant/ rather than what you've actually coded :-}

Cheers,

Rob


----- Original Message -----
From: "Kipp, James" <[EMAIL PROTECTED]>
To: "'Ian Zapczynski'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 4:11 PM
Subject: RE: populating a hash key using a variable


> >
> > If I do $hash{SOMETHING}{0} = $something;
> >
> > Then my hash is populated correctly.  I am only not getting
> > results if I
> > do $hash{SOMETHING}{$i} = $something.  The key here is how I am using
> > the variable $i in my hash.
> >
> >
>
> I tried this on my machine and it worked fine:
> my $i;
> for ( 1..5 ) {
>        $hash{'KEY'}{$i} = "test$i";
> print "$hash{'KEY'}{$i}\n";
>        $i++;
> }
> # prints:
> test
> test1
> test2
> test3
> test4
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to