in reply to use strict
A way of solving this while using strict:
my @interests = ("foo", "bar", "blah"); my %hash; foreach (@interest) { $hash {$_} = "My interest is $_"; } foreach (@interest) { print $hash {$_}, "\n"; }
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use strict
by rsiedl (Friar) on Jun 01, 2004 at 14:21 UTC |