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; }
In reply to Using the Variable Name from an Array by perlgates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |