Annemarie has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for all responses! I am learning so much from seeing how other people tackle things!for ($mag=5.0;$mag<9.0;$mag=$mag+0.1){ $n{$mag}{0}=$n{$mag}{0.1}=$n{$mag}{0.3}=$n{$mag}{1}=0; $n{$mag}{3}=$n{$mag}{10}=$n{$mag}{30}=$n{$mag}{1000}=0; } for ($mag=5.5; $mag<9.0; $mag=$mag+0.1){ print"$n{$mag}{30}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with defining hashes
by polettix (Vicar) on Mar 30, 2005 at 13:00 UTC | |
by ysth (Canon) on Mar 30, 2005 at 18:47 UTC | |
by polettix (Vicar) on Mar 30, 2005 at 23:38 UTC | |
by Annemarie (Acolyte) on Mar 30, 2005 at 23:27 UTC | |
|
Re: Problems with defining hashes
by Fletch (Bishop) on Mar 30, 2005 at 13:08 UTC | |
|
Re: Problems with defining hashes
by tlm (Prior) on Mar 30, 2005 at 13:47 UTC | |
|
Re: Problems with defining hashes
by graff (Chancellor) on Mar 30, 2005 at 15:36 UTC | |
by Annemarie (Acolyte) on Mar 30, 2005 at 23:32 UTC | |
|
Re: Problems with defining hashes
by melora (Scribe) on Mar 30, 2005 at 23:35 UTC | |
|
Re: Problems with defining hashes
by tphyahoo (Vicar) on Mar 31, 2005 at 14:20 UTC |