Perl/Tk clipboard question

Hi there,

I have a Perl/Tk application that I've written that has a few scrolling Text box widgets for user entry. The whole application works fine, and copying/cutting and pasting operations between the various text boxes works exactly as it should while the application is running. However, when the application closes, the data on the clipboard is lost. So, for example, if I type some stuff in a box and copy it, I could paste it immediately into notepad. However, if I close the application and then try to paste, the clipboard is empty.

Is there any way to preserve the clipboard data after the application is closed? I doubt that this matters, but I am working on Windows XP (and I am mainly concerned with this application working on Windows machines).

I am using activestate perl v5.008004 for MSWin32 (win32 build 810) and Tk v. 804.027

Thanks in advance for any help!
Cheers,
Matt
LVL 15
nicholassolutionsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mattaustinCommented:
I didn't know the TK clipboard would do that but if your useing XP try to use the Win32 Clipboard:

http://search.cpan.org/~himazu/Win32-Clipboard-0.52/Clipboard.pm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nicholassolutionsAuthor Commented:
Hey thanks for the idea, I had not thought of that -- I'll give that a try.
0
nicholassolutionsAuthor Commented:
Thanks for the workaround -- I think perl/tk may actually be able to do this on it's own, but I tried Win32::Clipboard and it worked great -- a lot easier than figuring it out in ptk.

Cheers,
Matt
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.