Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Creating a Dynamic Table

by ikkon (Monk)
on Jan 10, 2007 at 18:03 UTC ( #593965=note: print w/ replies, xml ) Need Help??

in reply to Creating a Dynamic Table

thanks for your help, I fix it by using the following code

my @tableData = ( ["HP Hardware", "Total Cost"], ); for my $i ( 1 .. 15 ) { my $hardware_name = param('HW_' . $i . '_0'); my $hardware_val = param('HW_' . $i . '_1'); if ( $hardware_name and $hardware_val =~ /\w/ ) { push @tableData, [ $hardware_name, $hardware_val ]; push @tableData, [ "Total hardware cost:", $TotalHWValue]; } # if hardware_name } # foreach i my $some_data = \@tableData;
thanks again for your help

Comment on Re: Creating a Dynamic Table
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593965]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-07-06 00:26 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (68 votes), past polls