Skip to content

Instantly share code, notes, and snippets.

@edipretoro
Created August 26, 2014 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edipretoro/550a958b9ca95beb0dac to your computer and use it in GitHub Desktop.
Save edipretoro/550a958b9ca95beb0dac to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use Win32::UrlCache::Cache;
use Win32::INET qw/GetUrlCacheFile/;
use File::Remove;
my $index = Win32::UrlCache::Cache->new();
foreach my $url ( $index->urls ) {
if ( $url =~ /beconnected/ig ) {
my $path = GetUrlCacheFile( $url );
remove( \1, $path );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment