kaza_perl_ip has asked for the wisdom of the Perl Monks concerning the following question:

Hello! I've wrote a PerlTk script which opens and brings to front an existing (or minimized) editor window which I select from a list. The values shown in the list are paths of files. I noticed that immediately after opening a window in such a way, the clipboard contents are the path of the file which I selected. Since many times I would like to select some text in one editor window, then open another window and paste the selected text there, I would prefare that making selection from a list would not affect the clipboard at all. I attempted googling but it goes astray to various ways of manipulating the clipboard while I need the exact opposite: totally NOT affecting the clipboard by my selection. How to do it? TIA!
  • Comment on PerlTk, LINUX, GNOME3: how NOT to affect clipboard by selection from list?

Replies are listed 'Best First'.
Re: PerlTk, LINUX, GNOME3: how NOT to affect clipboard by selection from list?
by tybalt89 (Monsignor) on Jan 09, 2025 at 06:25 UTC

    I think you want -exportselection => 0

    For an example, see Re: TK + Script

      Thanks! That's exactly what had been missing.