bbfu has asked for the wisdom of the Perl Monks concerning the following question:
I'm having some trouble manipulating the X windows clipboard using Tk in Perl. According to the docs, the following should set the clipboard to "clip":
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new(); $mw->clipboardClear(); $mw->clipboardAppend('clip');
Unfortunately, this does not set the clipboard. If I have xclipboard(1) open, it tells me: "CLIPBOARD selection conversion failed".
Does anyone know what this means, and/or how I can manipulate the X clipboard from inside Perl? I can change the PRIMARY selection with no problem but I need to be able to set the clipboard.
TIA
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|