Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-09-15 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (146 votes), past polls