> my %hash = &func(); > print "$_\n" foreach keys %hash; >To work just like this: > print "$_\n" foreach keys &func(); >In my, 'pretending to just learn' mode, I don't understand. Perl will assign >the LIST to the hash in example one, but in example two, it croaks. A LIST is not a HASH. Learn that. Be done with it. Move on. >Removing intermediate data structures is easy in Perl, but not this case, >instead, I have to do this: >%{{&func()}}; >How... not easy to learn. >Especially since it's not documented. Perhaps, at least for the current<SNIP> Say what? --tom
- Re: functions that deal with hash should be more libera Jerrad Pierce
- Re: functions that deal with hash should be more li... Jerrad Pierce
- Re: functions that deal with hash should be mor... Casey R. Tweten
- Re: functions that deal with hash should be mor... John Porter
- Re: functions that deal with hash should be... Tom Christiansen
- Re: functions that deal with hash shoul... John Porter
- Re: functions that deal with hash ... Nathan Torkington
- Re: functions that deal with h... John Porter
- Re: functions that deal wi... Nathan Torkington
- Re: functions that deal wi... Casey R. Tweten
- Re: functions that deal wi... Tom Christiansen
- Re: functions that deal wi... Casey R. Tweten
- Re: functions that deal wi... Tom Christiansen
- Re: functions that deal wi... Nathan Torkington
- Re: functions that deal wi... John Porter
- Re: functions that deal wi... Buddha Buck
- Re: functions that deal wi... John Porter
- Re: functions that deal wi... John Porter
- Re: functions that deal wi... Tom Christiansen
- Re: functions that deal wi... Tom Christiansen
- Re: functions that deal wi... Casey R. Tweten