1package Clipboard::MacPasteboard; 2$Clipboard::MacPasteboard::VERSION = '0.28'; 3use strict; 4use warnings; 5 6use Mac::Pasteboard 0.011; 7 8our $board = Mac::Pasteboard->new(); 9$board->set( missing_ok => 1 ); 10sub copy { 11 my $self = shift; 12 $board->clear(); 13 $board->copy($_[0]); 14} 15sub paste { 16 my $self = shift; 17 return scalar $board->paste(); 18} 19 201; 21 22__END__ 23 24=pod 25 26=encoding UTF-8 27 28=head1 VERSION 29 30version 0.28 31 32=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan 33 34=head1 SUPPORT 35 36=head2 Websites 37 38The following websites have more information about this module, and may be of help to you. As always, 39in addition to those websites please use your favorite search engine to discover more resources. 40 41=over 4 42 43=item * 44 45MetaCPAN 46 47A modern, open-source CPAN search engine, useful to view POD in HTML format. 48 49L<https://metacpan.org/release/Clipboard> 50 51=item * 52 53RT: CPAN's Bug Tracker 54 55The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. 56 57L<https://rt.cpan.org/Public/Dist/Display.html?Name=Clipboard> 58 59=item * 60 61CPANTS 62 63The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. 64 65L<http://cpants.cpanauthors.org/dist/Clipboard> 66 67=item * 68 69CPAN Testers 70 71The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. 72 73L<http://www.cpantesters.org/distro/C/Clipboard> 74 75=item * 76 77CPAN Testers Matrix 78 79The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. 80 81L<http://matrix.cpantesters.org/?dist=Clipboard> 82 83=item * 84 85CPAN Testers Dependencies 86 87The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. 88 89L<http://deps.cpantesters.org/?module=Clipboard> 90 91=back 92 93=head2 Bugs / Feature Requests 94 95Please report any bugs or feature requests by email to C<bug-clipboard at rt.cpan.org>, or through 96the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=Clipboard>. You will be automatically notified of any 97progress on the request by the system. 98 99=head2 Source Code 100 101The code is open to the world, and available for you to hack on. Please feel free to browse it and play 102with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull 103from your repository :) 104 105L<https://github.com/shlomif/Clipboard> 106 107 git clone git://github.com/shlomif/Clipboard.git 108 109=head1 AUTHOR 110 111Shlomi Fish <shlomif@cpan.org> 112 113=head1 BUGS 114 115Please report any bugs or feature requests on the bugtracker website 116L<https://github.com/shlomif/Clipboard/issues> 117 118When submitting a bug or request, please include a test-file or a 119patch to an existing test-file that illustrates the bug or desired 120feature. 121 122=head1 COPYRIGHT AND LICENSE 123 124This software is copyright (c) 2021 by Ryan King <rking@panoptic.com>. 125 126This is free software; you can redistribute it and/or modify it under 127the same terms as the Perl 5 programming language system itself. 128 129=cut 130