in reply to push
facdata is a hash, so push isn't appropriate. You don't need to push anything onto the hash; near as I can tell, what you want to do is to set the keys of %facdata as the values of @facfields, and the corresponding values to the values in @facrow
You're very close indeed :
$facdata{@facfields} = @facrow (a hash slice) seems to be what you want.Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: push
by malaga (Pilgrim) on Jan 31, 2001 at 04:12 UTC | |
by arturo (Vicar) on Jan 31, 2001 at 18:58 UTC | |
Re: Re: push
by malaga (Pilgrim) on Jan 31, 2001 at 00:01 UTC | |
by arturo (Vicar) on Jan 31, 2001 at 00:09 UTC | |
by malaga (Pilgrim) on Jan 31, 2001 at 04:15 UTC | |
by chipmunk (Parson) on Jan 31, 2001 at 04:18 UTC | |
by malaga (Pilgrim) on Jan 31, 2001 at 00:17 UTC |
In Section
Seekers of Perl Wisdom