http://www.perlmonks.org?node_id=132572


in reply to Copy scalar to Windows 'paste' buffer

I would see if Win32::Clipboard will do what you need.