Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5995

Perl copy to clipboard not working with Clipboard module

$
0
0

I have Perl 5.18.2 version installed in my Ubuntu 14.04 LTS.

Now I have created a custom command in geany which I am firing as below:

perl /home/ubuntu/geany_custom_cmds/get_current_directory_path.pl %f %d %e

And below is the code of get_current_directory_path.pl file:

#!/usr/bin/perl -w# print $ARGV[0];use Clipboard;foreach $argnum (0 .. $#ARGV) {    print "$ARGV[$argnum]\n";    Clipboard->copy($ARGV[$argnum]);    print Clipboard->paste;}

But I am not getting any argument's value in my Ubuntu clipboard which I can paste by Ctrl + V.

Any suggestions are welcome.


Viewing all articles
Browse latest Browse all 5995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>