Skip to content

Instantly share code, notes, and snippets.

@briandfoy
Created April 28, 2013 22:04
Show Gist options
  • Save briandfoy/5478590 to your computer and use it in GitHub Desktop.
Save briandfoy/5478590 to your computer and use it in GitHub Desktop.
#!/usr/local/perls/perl-5.14.2/bin/perl
use Mac::Pasteboard;
my $pb = Mac::Pasteboard->new;
my %tags = $pb->flavor_tags;
my @names = $pb->flavor_flag_names ($flags);
use Data::Dumper;
print Dumper( \@names ), "\n";
#$pb->clear();
#$pb->copy( "$0 $$ " . localtime() );
printf "On the clipboard-----\n%s\n---------------\n",
$pb->paste;
#$pb->copy( "$0 $$ " . localtime() );
$pb->clear();
__END__
printf "On the clipboard-----\n%s\n---------------\n",
$pb->paste;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment