perlgates has asked for the wisdom of the Perl Monks concerning the following question:
I want to get at the variable name from the @ element array and assign it to $DB_Column Name>
@element= ( $id,$Record_Lock,$Record_Change_Date,$Purchase_PO,$Project_Group, $Project_Name,$Project_Active,$Project_Vendor,$Project_Prime,$Projec +t_Status, $Site_ID,$Site_Name,$Site_Division,$Site_Country,$Site_AP_Count, $Survey_Data_Date,$Survey_First_Date,$Survey_Last_Date,$Survey_Count +, $Survey_Status,$Survey_Status_Manual,$Survey_GT_Three,$Map_Approved_ +Date,$Map_Architecht, $Cutover_Approved_Date,$Survey_Approved_Date,$Map_Billed_Month,$Cuto +ver_Billed_Month,$Survey_Billed_Month) foreach $Field_Name(@element) { $X1=$X."px"; $Y=$Y."px"; $Z1=$Z."px"; print <<ENDHTML; <div id="contentframe" style="position:absolute; top: $X1; Left: $Y1;" +>$DB_Column_Name</div> <div id="contentframe" style="position:absolute; top: $X1; Left: $Z1;" +> <input type="text" name="$DB_Column_Name" style="width: 120px;"va +lue="$Field_Name"> <br></div> ENDHTML $X=$X+30; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using the Variable Name from an Array
by davido (Cardinal) on Nov 14, 2019 at 17:48 UTC | |
|
Re: Using the Variable Name from an Array
by hippo (Archbishop) on Nov 14, 2019 at 16:15 UTC | |
by perlgates (Initiate) on Nov 14, 2019 at 16:58 UTC | |
by shmem (Chancellor) on Nov 14, 2019 at 17:13 UTC | |
by choroba (Cardinal) on Nov 14, 2019 at 17:11 UTC | |
|
Re: Using the Variable Name from an Array
by BillKSmith (Monsignor) on Nov 14, 2019 at 16:54 UTC |