Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

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.

Comment on PerlTk - Xquartz cut-n-paste broken?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1023774]
Approved by Argel
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2015-07-07 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls