saffron has asked for the wisdom of the Perl Monks concerning the following question:
I would like to know how to properly edit a script to the effect of if no data was entered in a form field in a table cell to print the output as a blank table cell. Example:
##if data was entered print "<td colspan=x>$xyz</td>\n"; ##if no data was entered print "<td colspan=x> </td>\n";
I have searched the web, but could not find anything on this and have little understanding of perl. Is there an easy fix to this other than to write a sub routine 41 times? All I want to do is if no data was entered, just leave a blank table...otherwise print the data in the table.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: lost wtih blank data
by GrandFather (Saint) on Dec 09, 2009 at 02:15 UTC | |
by bv (Friar) on Dec 09, 2009 at 02:57 UTC | |
by saffron (Initiate) on Dec 09, 2009 at 03:11 UTC | |
|
Re: lost wtih blank data
by afoken (Chancellor) on Dec 09, 2009 at 09:46 UTC | |
|
Re: lost wtih blank data
by igoryonya (Pilgrim) on Dec 09, 2009 at 15:56 UTC |