CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Why can't I save to the clipboard?


New User

Oct 10, 2016, 11:23 AM

Post #1 of 2 (3379 views)
Why can't I save to the clipboard? Can't Post

I have a very simple Perl script that saves text to the clipboard. I've done this a million times before, but all of a sudden whenever I call this code:

use strict; 
use Win32::Clipboard;

$| = 1;

my $text = "Will not save!";
my $clip = Win32::Clipboard->new();

I get this error:
Goto undefined subroutine &AutoLoader::AUTOLOAD at C:/Perl64/lib/Win32/ line 45.

Does anybody have any idea what's going on here? Thanks in advance.

New User

Oct 11, 2016, 7:04 AM

Post #2 of 2 (3370 views)
Re: [Bobt1234] Why can't I save to the clipboard? [In reply to] Can't Post

Problem solved.

My computer had been infected with the SONAR.Cryptlock!g93 virus, a piece of ransomware that encrypts every file on your drive, then asks for payment to un-encrypt it.

Last night my antivirus caught and quarantined another instance of it, and now copying to the clipboard works. Apparently some system files were messed up.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives