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

6
votes
4answers
52k 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 ...
-1
votes
0answers
31 views

Permission denied on perl script - Apache

I have fresh installed ubuntu server 14. After all configuration i'm trying to run my intranet but i have problem and i've tried all (to me) known solutions Apache have no permission to execute my ...
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 ...
0
votes
1answer
45 views

How to convert Arabic subtitles to utf8 the right way?

Most DVD burners (if not all) ask for subtitles to be encoded in utf8, sure that's easy for file in *.srt; do ◀ iconv -f ISO-8859-1 -t UTF-8 -o "$file".utf "$file" && mv "$file".utf "$file" ◀ ...
5
votes
1answer
763 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 ...
0
votes
0answers
22 views

how to detect the encoding of a file? [duplicate]

I have subtitles files, .srt i want a quick way to detect their encoding so i can tell devede what is their encoding so it can burn them correctly it would be nice to have a recursive script that ...
0
votes
1answer
38 views

Trying to remove apache2/httpd and installing mod_perl

It started with me trying to install Apache and mod_perl by following this guide. However, foolishly I installed Apache by using sudo apt-get install apache2, which installed 2.4 on my system. ...
4
votes
3answers
197 views

Searching for patterns in csv files

I have file.csv that looks like this 4,6,18,23,26 5,12,19,29,31 2,5,13,16,30 9,10,24,27,32 4,5,10,19,22 4,6,8,10,25 2,3,4,25,11 I want to find some patterns and save them in another log file ...
0
votes
0answers
16 views

Install libperl-dev [duplicate]

I tried install sudo apt-get install libperl-dev but is not working. I have the message Unable to correct problems, you have held broken packages What can I do? Thanks
0
votes
2answers
825 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 ...
0
votes
0answers
41 views

bugzilla in ubuntu 12.04 server

I am trying to install bugzilla on my Ubuntu 12.04 64 bit server machine. I am following these steps. The problem is that I am not able to find the localconfig file in the bugzilla folder or can I say ...
0
votes
1answer
78 views

How to install WWW::Mechanize::Firefox and MozRepl::RemoteObject?

I want to use WWW::Mechanize::Firefox. Trying to install it via cpan one dependency not OK (MozRepl::RemoteObject); additionally test harness failed Trying to install MozRepl::RemoteObject will not ...
1
vote
0answers
63 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
2answers
58 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
46 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 ...
0
votes
1answer
111 views

Permission denied running perl

perl 5.18.2 was running fine on my Ubuntu 14.04 system until I needed a package from CPAN which did not exist as an Ubuntu package. I installed it as root and it didn't work but then the installation ...
0
votes
2answers
275 views

Pac ssh manager on Ubuntu 14.04 does not work

I am using Ubuntu 14.04. For ssh, I am using pac manger. It was working perfectly on Ubuntu 12.04 but after upgrading to 14.04 pac does not work. When I run it from the terminal it says: Can't locate ...
2
votes
2answers
154 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 ...
0
votes
0answers
46 views

installing plperl in postgresql

I am trying to use the perl language in postgresql, thus I need to install plperl. I am running all of my queries in pgadmin III. When I first tried create extension plperl; I get the following ...
2
votes
2answers
51 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 ...
0
votes
1answer
70 views

Installing Authen::Simple::PAM module with cpan in ubuntu fails

I'm trying to install the Authen::Simple::PAM module using cpan from ubuntu terminal and i get an error as shown below (note other modules install perfectly) Checking if your kit is complete... Looks ...
1
vote
1answer
533 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 ...
3
votes
1answer
110 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 ...
1
vote
3answers
83 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 ...
0
votes
1answer
50 views

Perl hangs for regular users, works with sudo

I recently installed Ubuntu 14.04 LTS and for some reason the perl command just hangs when a regular user calls it. However, if I use sudo with it, it will work perfectly. I'm thinking the perl ...
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 ...
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 = ...
0
votes
0answers
28 views

lighttpd compilation error in the file configfile.c

While I’m trying to install lighttpd I get the following error: "(configfile.c.1003) opening configfile /etc/lighthttpd/lighttpd.conf failed: No such file or directory" So what is solution?
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 ...
0
votes
2answers
80 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 ...
0
votes
1answer
44 views

How Do I Run update-perl-sax-parsers to get XML::LibXML::Document properly installed?

I've just tried to install the Perl module XML::LibXML::Document using the cpan shell and at the end of the process it says: Please use 'update-perl-sax-parsers(8) to register this parser.' See ...
1
vote
3answers
917 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 ...
1
vote
1answer
261 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 ...
0
votes
1answer
40 views

Ubuntu server strange locale issue

Installed brand new Ubuntu 13.10 64 bit on Hetzner server. Right after install tried to execute apt-get update and apt-get dist-upgrade. Getting following error nearly on all apt-get operation perl: ...
0
votes
1answer
197 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
2answers
384 views

It is possible to run a Exe file in RedHat [closed]

I am new to linux. I run the batch file which will execute exe file in automated way. I need to do the same in linux. Kindly give me some idea how to use it. Thanks in advance
1
vote
1answer
89 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 ...
2
votes
1answer
2k 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 ...
0
votes
1answer
2k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
-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 ...
0
votes
0answers
393 views

Perl Module not loading up for OCS Inventory setup

I'm trying to setup the OCS Inventory tool in my network. I can't set up the initial configuration. Check my below ocs_server_setup.log: root@ubuntu:/usr/src/OCSNG_UNIX_SERVER-2.0# vim ...
0
votes
1answer
575 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
91 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 ...
-1
votes
2answers
102 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
758 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
359 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
91 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
2answers
9k 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.
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
1k 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 ...