Greetings PerlMonks

I have this simple script;
#! c:/perl/bin/perl.exe # # use strict; use warnings 'all'; system (CLS); my $vu_win = MainWindow->new(); $vu_win->configure(-title=>'Verify User', -background=>'blue'); $vu_win->geometry('+100+300'); my $vu_frm1 = $vu_win->Frame(-relief=>'groove', -borderwidth=>3, -back +ground=>'blue',)->pack(-side=>'top', -fill=>'x'); my $vu_lb1 = $vu_frm1->Label(-text=>'Enter Username',-background=>'blu +e',-foreground=>'white',)->pack(-side=>'left'); my $vu_en1 = $vu_frm1->Entry(-textvariable=> \my $usr, -width=>35, -ba +ckground=>'white')->pack(-side=>'left', -pady=>5); my $vu_frm2 = $vu_win->Frame(-relief=>'groove', -borderwidth=>3, -back +ground=>'blue',)->pack(-side=>'top', -fill=>'x'); my $vu_lb2 = $vu_frm2->Label(-text=>'Enter Password',-background=>'blu +e',-foreground=>'white',)->pack(-side=>'left'); my $vu_en2 = $vu_frm2->Entry(-textvariable=> \my $pw, -show=>'*',-widt +h=>35, -background=>'white')->pack(-side=>'left', -pady=>5); $vu_en2->bind('<Return>'=> sub{ &process( $usr, $pw ), $vu_win->destro +y}); sub process { my ($usr_name, $pass_wd) = @_; $vu_win->destroy; print "\n$usr_name, $pass_wd\n"; } MainLoop();
But when I run it I get the following output!
tsx14528, bncfvbncvbncvbncv destroy (1): 0 0x182e30c PVMG f=0008e507 {}(5)(5) SV = PVMG(0x34878e4) at 0x182e30c REFCNT = 5 FLAGS = (PADBUSY,PADMY,GMG,SMG,RMG,ROK) IV = 0 NV = 0 RV = 0x36b1c40 PV = 0x36b1c40 "" CUR = 0 LEN = 0 MAGIC = 0x36c791c MG_VIRTUAL = 0x3b86340 MG_TYPE = PERL_MAGIC_ext(~) MG_FLAGS = 0x02 REFCOUNTED MG_OBJ = 0x36c059c SV = PV(0x367fb94) at 0x36c059c REFCNT = 1 FLAGS = () PV = 0x36c78f4 "" CUR = 0 LEN = 20 C:\Scripts>
Would it be possible for you please:

to advice on the reasons for this output when I expect nothing but two strings ($usr_name, $pass_wd) to be displayed!

Any perls of wisdom would be highly appreciated!

Blackadder

In reply to Tk destroy error by blackadder

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.