use Win32::Clipboard; $CLIP = Win32::Clipboard(); $CLIP->Set("some text to copy into the clipboard");