in reply to print to clipboard
Here you go, this script reads itself into the clipboard then reads that back.....
use Win32::Clipboard; my $cb = Win32::Clipboard(); $cb->Empty(); open F, $0 or die $!; $cb->Set( do{ local $/; <F> } ); close F; $cb->WaitForChange(); printf "Clipboard contains:\n\n%s\n", $cb->Get();
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print to clipboard
by tilly (Archbishop) on Aug 24, 2004 at 15:24 UTC | |
by tachyon (Chancellor) on Aug 24, 2004 at 16:06 UTC | |
by tilly (Archbishop) on Aug 24, 2004 at 16:16 UTC | |
by tachyon (Chancellor) on Aug 24, 2004 at 16:26 UTC |