So modifying https://metacpan.org/source/KARASIK/Prima-1.57/examples/menu.pl you can see a solution

bless({ __CMATE__ => 15985916, alignment => 1, atDrawX => 0, atDrawY => 0, autoHeight => 1, autoSelect => 1, autoTab => 0, borderWidth => 1, charOffset => 3, defcw => 1, firstChar => 0, font_height => 13, font_width => 5, grouped_undo => 2, insertMode => 1, line => ("*" x 31), lineWidth => 124, maxLen => 200, passwordChar => "*", readOnly => 0, redo => [], resetDisabled => 0, resetLevel => 0, selChunks => [], selEnd => 0, selStart => 0, textDirection => 0, undo => [ [["selection", 0, 0], ["selection", 0, 0], ["s +election", 0, 0]], [["charOffset", 0]], [["firstChar", 0], ["selection", 0, 0]], [ ["selection", 0, 0], ["edit_text", "Menu and input line example"] +, ["selection", 0, 0], ["charOffset", 1], ], [ ["selection", 0, 0], ["edit_text", "aMenu and input line example" +], ["selection", 0, 0], ["charOffset", 2], ], [ ["selection", 0, 0], ["edit_text", "asMenu and input line example +"], ["selection", 0, 0], ["charOffset", 3], ], [ ["selection", 0, 0], ["edit_text", "asdMenu and input line exampl +e"], ["selection", 0, 0], ], ], undoLimit => 10, wholeLine => ("*" x 31), wordDelimiters => ".()\"',#!%^&*{}[]?/|;:<>-= \xFF\t", writeOnly => 1, }, "Prima::InputLine"),
$w-> insert( "InputLine", pack => { pady => 20, padx => 20, fill => 'x', side => 'botto +m'}, text => $w-> text, maxLen => 200, onChange => sub { #~ warn "@_"; #~ use Data::Dump;dd(\@_); #~ use Data::Dump;dd( $inputine->{undo}->[-1][1][1] ); use Data::Dump;dd( $_[0]->{undo}[-1][1][1] , $_[0]->text ); $_[0]-> owner-> text( $_[0]-> text); $_[0]-> owner-> Label1-> text( $_[0]-> text); $_[0]-> owner-> menu-> coexistentor-> text( $_[0]-> text) if $_[0]-> owner-> menu-> has_item( 'coexistentor'); }, );
$inputline->password; sub Prima::InputLine::password { my( $inputline ) = @_; local $@; return "".eval { $inputine->{undo}->[-1][1][1] }; }

In reply to Re^2: GUI question: Prima: password input fields by Anonymous Monk
in thread GUI question: Prima: password input fields by docsnyder

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.