Perl is a high-level programming language that comes installed by default in Ubuntu. It is well known for it's use for text manipulation, CGI scripts and it's huge community. You can find any modul and many tutorials on http://www.cpan.org/

learn more… | top users | synonyms

11
votes
1answer
14k views

How to set locale?

After a clean Ubuntu Server install, I get the following error when running 'perl'. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = ...
7
votes
4answers
913 views

CPAN vs. APT: Conflicts in versions?

I can't find the answer to this anywhere: Does a module installed via APT conflict with one installed via CPAN? Along with that question are these: Where does the installed CPAN modules live? Are ...
6
votes
2answers
2k views

How do I undo an accidental installation of all Perl modules?

I was attempting to upgrade my Perl modules through CPAN, but I did not supply a regex/module name to upgrade: perl -MCPAN -e 'upgrade'; I can only assume the worst (which seems to be supported by the ...
5
votes
1answer
356 views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories (14.04) able to create Excel 2007+ xlsx files from a script (python3 or perl) My requirements: 100% compatible Excel XLSX ...
4
votes
4answers
49k views

How do I update/install Perl

The Perl package is in /usr/bin and is an older version (5.12.4) and the current stable release appears to be 5.14.2. How do I update this version? Root access is required, and I do not want to ...
4
votes
1answer
692 views

Rename - what does s// vs y// mean?

The man page (http://manpages.ubuntu.com/manpages/dapper/man1/prename.1.html) gives two examples: rename ’s/\.bak$//’ *.bak rename ’y/A-Z/a-z/’ * So it's either s or y and then ...
4
votes
1answer
1k views

Perl doesn't include directory

I have a problem with perl5 with ubuntu. I've got a script, in which I include several directories. When starting the script, the shell returns Can't locate XML/Twig.pm in @INC (@INC contains: ...
3
votes
3answers
2k views

How can I use perl 5.12 in 10.10?

How can I use perl 5.12 in Ubuntu? There is no distribution package on Ubuntu. I have to use feature 'unicode_strings'; in my perl code, and this is available from 5.12. I try to install perl on ...
3
votes
2answers
6k views

Installing libwww-perl on Ubuntu 12.04,SE

I have an Ubuntu 12.04 server edition which I ssh into. I am running Perl scripts on this server but it fails when I load 'use LWP::UserAgent;' with error message: Can't locate LWP/UserAgent.pm in ...
3
votes
1answer
7k views

How to install Perl Switch.pm module required to build WebKit-GTK?

I noticed that the perl version (5.14) shipped with 12.10 does not include the Switch.pm module needed while building WebKiT-GTK. Looking around on the internet I found few suggestions indicating ...
3
votes
2answers
1k views

Shell script to restart a process if it outputs a certain piece of text

I have a python program which, from time to time, crashes with a number of different exceptions usually due to network issues. The only way to get it to work is to restart it. How would I write a ...
3
votes
1answer
249 views

yum whatprovides 'perl(Foo::Bar)' equivalent with apt or dpkg?

This is certainly related to this question, but I feel it doesn't overlap, so here we go. How can I get the functionality of the following command on Ubuntu (and/or Debian as bonus): yum whatprovides ...
3
votes
1answer
78 views

Get Quotes for stock prices in GnuCash using Finance::Quote

I have followed the instructions here, using the exact example, to have automatic stock price updates in GnuCash. When I click price editor -> Get Quotes it returns in a warning Unable to retrieve ...
3
votes
1answer
154 views

Why cant i find site_perl directory in Ubuntu?

I am compiling a program from source code. It requires path to my site_perl directory. When I run perl -V, i see that there is /usr/local/lib/site_perl at the end but i cant find the directory in the ...
2
votes
5answers
4k views

How do I setup sendmail, postfix, or dovecot so that perl can send emails?

Direct Question: I want to enable Perl to send emails. What package(s) should I install to setup a simplistic email server: no need for incoming, only outgoing. I can forward through gmail's SMTP if ...
2
votes
5answers
6k views

How to batch rename files with “variables”?

I use xmbc to view my tv shows. Before I began using xmbc, I batch downloaded the first few seasons of "Bleach". What can I say, I'm an anime fan ;-). These are named: "bleachxx.mp4" where xx is the ...
2
votes
2answers
159 views

How to add space to Exec path in a Thumbnailer descrption?

I wish to use mplayer to generate thumbnails for nautilus, so I wrote a perl script as the thumbnailer named "gnome_thumbnailer_with_mplayer", and wrote a description in /usr/share/thumbnailers to ...
2
votes
2answers
38 views

How to correctly invoke awk in Perl to print out the 3rd last field in a line?

My script is: #!/usr/bin/perl -w my $line="1 2 3 4 5 6 7"; print $line; my $thirdlast=`print $line |awk '{print $(NF-3)}'`; print $thirdlast; The output is: 1 2 3 4 5 6 7 awk: 0602-542 There is ...
2
votes
1answer
69 views

Can a script resume after computer comes out of hibernation?

I kept a perl script running and then forgot it and hibernated my laptop running Ubuntu. When I restarted it, the script was seen to be running (pleasant surprise!). Is this correct behaviour or did ...
2
votes
1answer
668 views

Why doesn't Perl use latest version by default?

When I try to use new perl features (like "say" instead of "print") the code fails until I put in the line "use 5.014;" and then everything runs. My installed version of perl is 5.14.2, and it looks ...
2
votes
2answers
8k views

How I can install RRD module in perl?

I'm very new to Ubuntu. I'm using Nagios Graph plugin. That plugin needs perl RRD module to be installed on my system. How I can install that? Thanks in advance.
2
votes
1answer
513 views

How do I install Gournal?

I am trying to install Gournal and I can't because of a missing dependency which doesn't appear to be in natty? gournal : Depends: libgnome2-print-perl but it is not installable
2
votes
1answer
143 views

How can I programatically find out which CPAN modules relate to packaged modules?

I am trying to write an Juju formula for App::Alice, a web based IRC client. According to the the installation instructions I execute the following commands to snag Alice and all of it's dependencies ...
2
votes
1answer
1k views

Using Modifiers of Perl-compatible Regex (PCRE) in grep

According to grep --help and man grep, we can use the -P option in order to interpret the pattern as a Perl regular expression (PCRE, to be precise), instead of the default POSIX basic regular ...
2
votes
2answers
89 views

Removing a string of files with rename

I have been trying to batch rename a bunch of files so that they are consistent and fit within the name structure that I have come up with. For instance,I am renaming comics, and so I have a directory ...
2
votes
1answer
604 views

Unable to install a CGI script on Ubuntu

I'm trying to install CGIProxy on Ubuntu. http://www.jmarshall.com/tools/cgiproxy/install.html#install Basically it's a single "nph-proxy.cgi" file which I placed in my /var/www folder. I used ...
2
votes
1answer
131 views

Perl module Set::IntervalTree is not installing

Please help me resolve this issue. I am trying to install a Perl module Set::IntervalTree in Ubuntu. I am repeatedly receiving the following error: cpan[1]> install Set::IntervalTree CPAN: ...
2
votes
1answer
264 views

How to resolve Perl module error while trying to run NGS QC Toolkit?

I was trying to run NGS QC Toolkit http://59.163.192.90:8080/ngsqctoolkit/ in Ubuntu 12.04 LTS 64 bit version. But, after executing the command, an error shows that states it cannot find module ...
2
votes
2answers
122 views

How to repair fonts for Perl/Tk (14.04)

With Ubuntu 14. 04 I have Perl 5.18.2 for x86_64-Linux-gnu-thread-multi on my laptop which is nice, but after installing Perl/Tk-804.032 from CPAN I seem to only get non-antialiased fonts (scaled ...
2
votes
1answer
81 views

Error installing SHA

I'm trying to install SHA using the following command perl -MCPAN -e 'install Digest::SHA' I also tried using: sudo cpan 'install Digest::SHA' But i'm getting a linker error: ...
2
votes
1answer
143 views

Different behavior when launched from terminal instead of Unity launcher

I have written two Perl/Gtk programs. When launched from the dash menu, they run just fine. However, if I try to launch them from terminal using the very same command found in their .desktop files, ...
2
votes
2answers
8k views

E: Sub-process /usr/bin/dpkg returned an error code (1) seems to be choking on kde-runtime-data version issue

12.04 LTS, on a dell mini 10. Install stable until about a week ago. Updated about 1x a week, sometimes more often. Several days ago, I booted up and the system was no longer working correctly. All ...
1
vote
3answers
77 views

Forming IPAddresses from Text file

I have a huge text file that contains IP addresses scrambled all over but not in one unit for example. So what the@192@ heck are you doing@168@ in my house @10@.you were not @16@ supposed to be ...
1
vote
1answer
82 views

Error while running perl command on Ubuntu

ruby@ruby-Z87X-HD3:~$ sudo apt-get install libpdf-api2-perl Reading package lists... Done Building dependency tree Reading state information... Done libpdf-api2-perl is already the newest ...
1
vote
1answer
668 views

How to run a Perl command?

If I am running the following command to replace a string dst_ with dst_addr_ in multiple files. perl -pi -w -e ’s/dst_/dst_addr_/g;’ *.tcl it shows the following error: Unrecognized character ...
1
vote
1answer
711 views

How do I run asciiquarium in out-of-the-box ubuntu?

Asciiquarium is a perl script that requires Term::Animation. What are the appropriate hoops to jump through to get this cpan module into an ubuntu perl install? apt-cache search animation |grep -i ...
1
vote
1answer
64 views

Detect Ubuntu using perl

I am working on a perl script that must write configuration file. I need to know if the script is running on Ubuntu to set some Ubuntu-specific values (basically, disable the unified bar). The script ...
1
vote
1answer
470 views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...
1
vote
1answer
2k views

What perl version will be in 12.04 LTS

Pretty soon the new 12.04 version of ubuntu will be released. My question is what version of perl language will be in this distribution. And my second version where can this information be found.
1
vote
2answers
5k views

Why does my Perl CGI script raise an internal server error on Apache?

I've installed apache2 on Ubuntu 11.04, and localhost is working. I created a simple printenv.pl script and put it in the following directory $ mv printenv.pl /usr/lib/cgi-bin/ $ chmod +rx ...
1
vote
1answer
36 views

Why does my program not execute a perl file

I have a perl file name make_html.pl which works on a module named API::PDF2 (link) I downloaded it installed it and I think I set the path wrong. my @INC has the values Built under linux Compiled ...
1
vote
1answer
3k views

How do I install a perl module in Ubuntu 12.04?

I need to use package List::Compare. I have downloaded Compare.pm which says use List::Compare::Base::_Auxiliary qw( _validate_2_seenhashes _chart_engine_regular ); What all do I need to ...
1
vote
1answer
911 views

change cpan install directory

I have tried to setup cpan on my ubuntu 12.04 using: sudo cpan and it created a folder perl5 in my $HOME folder. I would like to use a different directory such as $HOME/.perl5 or somewhere in ...
1
vote
2answers
33 views

How to run perl script in background

I am new user to ubuntu... Putting & and in the end is putting the application on background, but not really, it still gives me the output of the perl script in my command line even though it is ...
1
vote
1answer
312 views

Vim refuses to start with “error while loading shared libraries: libperl.so.5.14” after upgrade to Ubuntu 14.04

After I upgraded to Ubuntu 14.04 vim refuses to start, showing the following error: vim: error while loading shared libraries: libperl.so.5.14: cannot open shared object file: No such file or ...
1
vote
1answer
136 views

How do I change the @INC variable to use BioPerl?

I have successfully installed BioPerl. When I try to use the objects I get an error cannot locate Bio.seq.pm in @INC ..... The "build" programs put everything in the "download" directory. I ...
1
vote
1answer
2k views

Error when installing CPAN modules

I Have install latest version of CPAN v1.9800 in my ubuntu 10.04. When i try to install any cpan module using perl -MCPAN -e shell;install GD::Graph, It's showing below issue. I can't find out ...
1
vote
0answers
23 views

Errors installing the perl module File::Scan::ClamAV

Ubuntu 14.04 LTS, Gnome desktop. I'm missing one of the requires for having ClamAV work with SpamAssassin and it will not install, here is the output. The command used to install is: ...
1
vote
1answer
157 views

What modules do I need to run perl CGI with apache?

I have some CGI script using perl and I would like to make them work on Apache. I have the following installed : $ dpkg -l | grep perl | grep apach ii libapache-session-perl 1.90-1 ...
1
vote
3answers
851 views

Ubuntu 13.10, Perl complaining about setting locale

I'm getting rather annoyed with Ubuntu 13.10. I need to go about fixing locales on my server, or else I see junk like this happening: perl: warning: Setting locale failed. perl: warning: Please check ...