Brandon's Notepad

February 26, 2010

Using The Windows Clipboard in Perl

Filed under: Perl — Brandon @ 11:05 am

The following snippet illustrates the use of the Win32::Clipboard module.

use Win32::Clipboard;
$clip = Win32::Clipboard();
print "Type your name: ";
$input = <>
chomp $input;
$clip->Set("Hello, $input!");
print "You may now paste!\n";
Advertisements

Blog at WordPress.com.

%d bloggers like this: