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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.