Don't ask to ask, just ask | |
PerlMonks |
Re: pushby arturo (Vicar) |
on Jan 30, 2001 at 23:58 UTC ( [id://55326]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|