Untested, but you could store those hashes (%row_1 %row_2 %row_3) in an array:
use vars qw/$mw $col @row/; @row = ( { parent_frame => $mw, label_width => 12, entry_width => 10, label_1 => 'Alpha 1', label_2 => 'Bravo 2', }, { parent_frame => $mw, label_width => 12, entry_width => 10, label_1 => 'Charlie 3', label_2 => 'Delta 4', label_3 => 'Echo 5', label_4 => 'Foxtrot 6', }, { parent_frame => $mw, label_width => 12, entry_width => 10, label_1 => 'Hotel 7', label_2 => 'India 8', label_3 => 'Juliet 9', label_4 => 'Kilo A', }, ); # and then later: mk_entrybox_row($_) for @row;
much easier!!

Oh, by the way, i personally consider it bad style (or false laziness) to wrap your entire writeup in code tags. Try to only use code tags for code (sometimes output) and use <p> tags to separate your paragraphs. See Perl Monks Approved HTML tags for more info.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) 2Re: create arbitrarily named scalars by jeffa
in thread create arbitrarily named scalars by aplonis

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.