M
Mike Flannigan
I'm trying to use Win32::Clipboard() to get data from the
clipboard. The text I am copying to the clipboard is in
an Excel file. Here is the code I use:
$clip = Win32::Clipboard();
$text = $clip->Get();
It works fine if I swipe the formula bar in Excel, hit
ctrl C, and then run the program. But if I just highlight
the cell I want and hit ctrl C, and then run the Perl
script I get a bunch of garbage like this:
6 ( ² ø à
ÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆ
Apparently this is some kind of metacharacters or something
that contains cell formatting (and other things?) along with the
text I want. Does anybody know how to extract the root
text from this gobley gook?
Mike Flannigan
clipboard. The text I am copying to the clipboard is in
an Excel file. Here is the code I use:
$clip = Win32::Clipboard();
$text = $clip->Get();
It works fine if I swipe the formula bar in Excel, hit
ctrl C, and then run the program. But if I just highlight
the cell I want and hit ctrl C, and then run the Perl
script I get a bunch of garbage like this:
6 ( ² ø à
ÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆÆ
Apparently this is some kind of metacharacters or something
that contains cell formatting (and other things?) along with the
text I want. Does anybody know how to extract the root
text from this gobley gook?
Mike Flannigan