in reply to Filling a hash
The function 'push' is not allowed.This is a strange requirement for two reasons: first , because we should be free of using push wherever we think it's good to; second, how I can add an element to a hash using the push function in an intuitive way? Nothing comes to my mind.
Then each hash is printed to the screen.Either your teacher missed something, or you failed to copy the input of your homework. I thought we were talking about one hash, not many. Anyway, if you want to print hash contents you could find Data::Dumper interesting.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filling a hash
by Tanktalus (Canon) on Oct 26, 2005 at 14:18 UTC | |
by polettix (Vicar) on Oct 26, 2005 at 14:26 UTC | |
|
Re^2: Filling a hash
by Fletch (Bishop) on Oct 26, 2005 at 13:44 UTC | |
by polettix (Vicar) on Oct 26, 2005 at 14:19 UTC |