1

Return a hash table from a sub routine

view story
linux-howto

http://www.unix.com – hello, i am new to scripting and would like to know how to return a hash table from a sub routine. i tried the following, Code: my %hash_function = (); hash_function = &return_hash(); sub return_hash {     my %hash = ();       ///populate the hash     return %hash; } but it dosent seem to work. Anything wrong in this?? (HowTos)