i have written small code which is intended for iterate over the loop and populate the hash,code is as below
use Data::Dumper; for ($i=0;$i<5;$i++) { $x{$i}="x"; } print Dumper($x);
but its not populating the hash as $var1={1=>x, 2=>x, 3=>x, 4=>x} Can you guys help me in populating this hash. Any help will be much appreciated
asab
In reply to Help needed in populating the hash by asab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |