Hi Monks-

This used to work a while ago, now isn't working (for me at least). I'm running on MacOSX Mountain Lion, and want to cut-n-paste to/from the clipboard. I run the following one-liner:

perl -MTk -e "MainWindow->new->Scrolled('Text')->pack; MainLoop();"
Enter some text into the text window, then highlight characters, then right-click Edit->Copy, the clipboard doesn't seem to be getting the highlighted characters loaded.

If I copy from some other Xquartz window, the clipboard gets loaded, and I can paste that into the Perl-Tk Text widget and/or other Xquartz windows. I just don't seem to be able to load the clipboard.

What am I doing wrong? My initial searching hasn't turned up anything useful (apologies up front if this turns out to be a no-brainer).

perl -v

This is perl, v5.8.8 built for darwin

Thanks

-Craig

3-17-2013 UPDATE: It appears there is a version incompatibility somewhere within my perl environment. I went on a MacMini and using the existing perl 5.12, built and installed Tk, and things work fine. Backtracking on the original system to see where the issue lies.


In reply to PerlTk - Xquartz cut-n-paste broken? by cmv

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.