Neetee Pawa wrote:
: I wanna use the name of hash ref as the value of string.
That sounds like a really bad idea. A more common approach
would probably use the name of the key and set each @row item to
that. What do you want the data structure to look like when the
loop is done? Don't explain it with words, show us an example.
my $i = 0;
foreach my $header ( sort keys %$headers) {
push @input_data, {
$header => $rows[$i++],
};
}
~
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
Free Market Advocate
Web Programmer
254 968-8328
Don't tread on my bandwidth. Trim your posts.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>