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

1
vote
3answers
1k 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 ...
0
votes
1answer
128 views

When piping output to a file, why are stderr and stdout in the wrong order?

I have a perl script: warn "1\n"; print "2\n"; warn "3\n"; print "4\n"; I pipe the output to a file: perl script.pl &> foo cat foo: 1 3 2 4 Why isn't the output in order, and how do I ...
0
votes
3answers
114 views

can “libexcel-writer-xlsx-perl” be added to precise and later?

I am interested in using the Perl module Excel::Writer::XLSX on Precise. I can install it using CPAN, but due to complications at my office, it'd be easier to just be able to do apt-get install from ...
-1
votes
2answers
121 views

Reading a file line by line

I have a file that looks like: @ATDGGSGDTSG NTCCCCC + nddhdhnadn @ATDGGSGDTSG NTCCCCC + nddhdhnadn Now its a repeating pattern of "4" lines and I every time want to print only the 2nd line i.e. the ...
0
votes
1answer
1k views

OTRS .opm package installation fails with error?

Scenario: I have downloaded the complete installation file of ITSM after a successful installation of OTRS/HelpDesk. When i go to admin panal @ ...
0
votes
3answers
520 views

How to find out what package contains some Perl module [duplicate]

Here is the task. I need to install some CPAN module on my ubuntu computer. I want to install it from deb package so I need to find out what package contains that module. Sometimes the solution for ...
2
votes
2answers
99 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 ...
1
vote
1answer
2k views

index.pl getting downloaded instead of executing on Ubuntu 12.04 and Apache 2.2.22

I have installed Apache 2.2.22 on Ubuntu 12.04. But in browser when I type localhost, it gives index.pl file to download instead of executing it. What I tried: 1. chmod 755 index.pl 2. Adding line ...
2
votes
1answer
74 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 ...
0
votes
1answer
830 views

Perl dependancy problems installing Webmin

I just installed webmin from a .deb file. on Ubuntu Server 12.04, which went ok. I logged in at the web interface and checked the "Perl Modules" page. There was on module suggested but not installed. ...
0
votes
1answer
617 views

How to configure apache2 in Ubuntu 13.04

I installed apache using ubuntu software center, and now it shows the following text on the page upon entrance of localhost in the addressbar of Firefox It works! This is the default web page for ...
0
votes
1answer
246 views

How to define the directory path of a file on my hard disk

I am having a problem when I want ro run a program which is my personal folder /home/student/trap/trap.pl, although I run this program from my hard disk only by defining the directory. The problem ...
0
votes
1answer
110 views

package 'libhtml-parser-perl': Is a directory E: Sub-process /usr/bin/dpkg returned an error code (2)

I encountered the problem few weeks ago. First I didn't pay to much attention and I let the server running, but for now, there is a lot of upgrades to be fixed and I'm stuck. If I try to upgrade ...
1
vote
0answers
99 views

Perl Crypt::Random?

I see an Openssl::Random, but some of my code uses Crypt::Random. Typically I've used cpan, but I'm trying to avoid that. Is there a Crypt/Random.pm somewhere that I'm missing or should I convert my ...
0
votes
1answer
150 views

Gui application for perl scripts and cshell

I am a very green to Linux. I am now taking a course at my studies basic of Linux. As part of my assessment I need to do some Perl scripts and C shell. But also we have been asked to build a GUI app ...
2
votes
1answer
901 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 ...
0
votes
1answer
100 views

Perl: problem with locales

I'm trying to install CGIProxy on my Ubuntu server and according to the instructions I have to: Copy the file nph-proxy.cgi onto your Web server somewhere, but not at the top Web directory, or else ...
2
votes
1answer
88 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: ...
0
votes
2answers
1k views

How can I install Uniscan on Ubuntu 13.04?

When I try to run uniscan.pl with perl ./uniscan.pl, I get this message: Can't locate Moose.pm in @INC (@INC contains: ./Uniscan /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 ...
3
votes
1answer
193 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 ...
-1
votes
2answers
643 views

Is it needed to upgrade perl to new stable version in ubuntu 12.04 LTS [closed]

as above! thanks! Can you suggest a book for this question?
2
votes
1answer
158 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: ...
0
votes
1answer
530 views

Macxchange Script to Change MAC and Hostname in ubuntu 12.04

I'm trying to adapt a script in backtrack to work with ubuntu. I keep getting an error on line 14 which is the "if [ $? == 0 ]; then" line the script was found on ...
2
votes
1answer
382 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 ...
0
votes
1answer
216 views

Can't run perl-browser

I'm trying to run this program perl-browser but I'm getting fowllowing error: $ perl ./perl-browser Can't locate Gtk2/WebKit.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 ...
0
votes
1answer
98 views

Perl Library for Unity

Is there a Perl Library for the Unity Launcher? Apparently there needs to be one to be able to write feedback to the launcher (Like Message Counts) but so far I haven't been able to find one. So I am ...
6
votes
2answers
3k 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 ...
1
vote
0answers
77 views

Where can I find Perl 5.12.1 on Ubuntu 11.04? [closed]

I have Ubuntu server (11.04) and by default Perl is 5.10.1. I have installed another Perl which I put at /opt/perl/bin/perl and its version is 5.12.1. When i try to run /opt/perl/bin/perl -v it says ...
0
votes
1answer
60 views

Perl Regex: negate character class gives unexpected results

Wondering if anyone else if having an issue with perl 5.14 on ubuntu 12.04 when it comes to negating a character class in Perl. Given the following small snippet while(<>) { print if ...
0
votes
1answer
510 views

Cannot install DBIx::Class::Loader in order to make Catalyst Model DBIC

I want to create model DBIC for Catalyst project with this command: myapp_create.pl model SomeDB DBIC dbi:SQLite:/tmp/my.db This command doesn't work since I haven't "Catalyst::Helper::Model::DBIC" ...
1
vote
1answer
2k views

Unable to install pecl extension for perl in Ubuntu Server 12.10

I need to call a perl script from my php file. I attempted to install the PECL extension for Perl. I was unsuccessful. I tried the following: pecl channel-update pear.php.net Updating channel ...
2
votes
1answer
749 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 ...
1
vote
1answer
84 views

UbuntuOne API - Developing a Perl module to use it

I'm developing a Perl module to work with the UbuntuOne's API. 1) I'm able to retrieve the Name, Consumer key, Consumer Secret, Token and Token secret values using the basic HTTP authentication and ...
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: ...
1
vote
0answers
30 views

perl: warning: setting locale fail [duplicate]

Possible Duplicate: locale: Reset lost settings Everytime I try running a command I get this type of error Now I am trying sudo apt-get dist-upgrade Here is the output error I tried the ...
1
vote
1answer
930 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
165 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
votes
1answer
2k views

cant locate FILE/Find.pm in @INC

As I said earlier, there is some directory called verilog which is HDL language used for hardware description. Inside this directory there are many sub-directories and .v files are available. So I ...
1
vote
1answer
1k 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 ...
4
votes
1answer
955 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 ...
3
votes
1answer
10k 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 ...
2
votes
1answer
147 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, ...
3
votes
2answers
8k 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 ...
2
votes
1answer
1k 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
431 views

Perl 5.12 on Ubuntu 10.10 [duplicate]

How can I use perl 5.12 on Ubuntu 10.10? 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 ...
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 ...
2
votes
2answers
180 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
11k 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
2answers
9k views

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

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
1answer
3k 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 ...