Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

PerlTk - Xquartz cut-n-paste broken?

by cmv (Chaplain)
on Mar 15, 2013 at 20:40 UTC ( #1023774=perlquestion: print w/replies, xml ) Need Help??
cmv has asked for the wisdom of the Perl Monks concerning the following question:

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



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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1023774]
Approved by Argel
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-01-18 18:45 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (163 votes). Check out past polls.