Hallo everybody,
I have a following problem - I'm doing a map funciont to fill in a HTML table and I want to use some radiobutton groups. Unfortunatelly, they are grouped by names, so I have to add some "counter" that will divide one row from another, and I'm using CGI.pm for generating the table.
print $qry->table ({ Border => 1, Cellpadding => 3, bordercolor =>"#FFFFFF"},
Tr(map{th($_) } @Head),
(map {
my ($Uid, $Fna, $Extnr, $Org, $Addr) = split /\|/, $_;
my $ZaZ =0;
Tr(
td(textfield('UID', "$Uid",6)),
td(textfield('FNA', "$Fnamn",20)),
td(textfield('BEF', "$Extnr",16)),
td(textfield('NYTT', "$Ankn",5)),
hidden('ADRE', $Addr),
td(checkbox_group('GRU',['P', 'F', 'K', 'Ej'],'Ej')),
td(radio_group("DOL[{[$ZaZ+1]}]",['Ja', 'Nej'],'Nej')),
td(radio_group('CMG',['Ja','Nej'],'Nej')),
);
}
<TEMP>), #/map
);
Now in BASH I could easily write for example
td(radio_group("DOL[�expr $ZaZ +1`]", ['Ja', 'Nej'],'Nej'))
to get $ZaZ incrised by one all the time, but how do I do that in perl ?
Thanks in advance.