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

0
votes
1answer
21 views

How to move files in perl recursively

How can i move all files in a directory to the previous directory in Perl using system command ? I tried the following method and it showed error system('/bin/mv "test/*" , "./"'); bash: syntax ...
0
votes
1answer
6k 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
vote
1answer
19 views

How to run a perl script with arguments

I'm pretty new with Ubuntu and Linux and I need some help in order ton run a perl script. It may sound silly, but I need to run a perl (.pl) file, using a specific argument. The key is that when I run ...
3
votes
1answer
327 views

Perl package not found with apt

When I try to do an upgrade or install something, apt(-get or aptitude) throw an error, saying that perl can't find XML/SAX/Debian.pm while trying to configure libxml-libxml-perl. Here is the full ...
2
votes
2answers
2k views

Perl .pl file downloads instead of being executed

I'm trying to get OTRS 4.0 working on Ubuntu 14.04. I've followed all instructions to install from source. When I open the site (localhost/otrs/index.pl), an empty .pl-file is served for download. ...
0
votes
0answers
23 views

How to fix this Problem ./checksetup.pl

Perl API version v5.14.0 of List::Util does not match v5.18.0 at /usr/share/perl/5.18/XSLoader.pm line 92. Compilation failed in require at lib/x86_64-linux-gnu-thread-multi/Scalar/Util.pm line 23. ...
1
vote
1answer
45 views

How to read multiple files in a directory by matching a pattern?

I have a directory containing 'x' no. of files. Some files contain a "Pass" string and some others with "Fail". I want to read both files and store the pass and fail files separately into two ...
1
vote
0answers
47 views

Perl script error : 'script executable not found'

I am trying to execute a perl script from Ubuntu (14.04 LTS). The script is transOutput.pl which calls an executable pdb_trans. However, when I run the script, I get the following error that pdb_trans ...
0
votes
1answer
44 views

printing distances of desired character based on occurance

This is an extension of my previous question (Printing pattern of "C" character). I would like to print "C" character from "text" column given in file.csv. The file.csv has two coloumns as ...
1
vote
1answer
216 views

how to fix error perl -e exit?

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "id_ID.UTF-8", LC_ADDRESS = "id_ID.UTF-8", ...
0
votes
0answers
34 views

Cron script runs but dpkg command fails

I have a cron script that updates a package with dpkg. This is an oversimplified version of a much larger script. But this is the part that is not working. I copy the update cron script to /etc/...
3
votes
3answers
723 views

Error while installing Apache on 12.04 LTS

On Ubuntu 12.04 LTS server I need Apache 2.4.5 or greater. I do this: add-apt-repository ppa:ondrej/php5 apt-get update apt-get install apache2 But when I run the last command I get: Setting up ...
0
votes
0answers
26 views

How to run EasyModeller (GUI for Modeller) on Ubuntu 14 x64?

I have successfully installed Modeller. I want to try to use the front end GUI software EasyModeller. However, when I try to run it I receive the error message as follows: user@pc:~/Downloads/...
0
votes
1answer
140 views

Perl: warning: Setting locale failed [duplicate]

I have problems when installing the tool and performing upgrades in Ubuntu 14.04 LTS. Please assist me Fetched 6738 kB in 1min 19s (85.1 kB/s) perl: ...
0
votes
0answers
23 views

How to make psad to work after upgrade to ubuntu server 14.04

I get this error: Perl API version v5.14.0 of Date::Calc does not match v5.18.0 at /usr/lib/perl/5.18/DynaLoader.pm line 207. Compilation failed in require at /usr/sbin/psad line 3220.
0
votes
0answers
49 views

PHP Errors in mail

I've been getting these error messages sent to me a lot lately, pretty sure it's causing me a problem. From root@kallarserver Fri Apr 15 13:39:01 2016 Return-path: <root@kallarserver> Envelope-...
0
votes
0answers
18 views

Koha in UBUNTU 12.04

At the time of accessing KOHA (LMS) embeded in ubuntu12.04 this message hasbeen shown "Can't locate Date/Calc.pm in @INC (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/...
0
votes
1answer
137 views

Ubuntu 15.10 Installing SDL2

I have ubuntu 15.10 running as a virtual machine I would like to install and use SDL2, I followed this process What is the general procedure to install development libraries in Ubuntu? as well as the ...
3
votes
2answers
128 views

adding zero to specific location of file names

I have a directory consists of several files. Files name are as follows; 0102920.05o 0203920.05o 0304920.05o .... I need to add "0" for all files after the first 4 numbers like; 01020920.05o ...
1
vote
2answers
3k 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
88 views

Perl check internet connection for 30 seconds if stable, not stable and no internet connection

I want script in perl that can check if my internet is stable, not stable or no internet connection. I use Net::Ping script but reply is "You are connected to the internet.", not checking internet ...
0
votes
1answer
29 views

reformat file in bash

A file I would like to parse looks like #header #header2 #header 3 # header 1 565286 SNP1-555149 C T . PASS AC=4270AF=1.00;AN=4270;set=broad GT 1/1 /1 ...
0
votes
1answer
29 views

extract line from file

a file I need to extract info from looks like 2 41620 . T G 100 PASS AC=3;AF=0.000599042;AN=5008;NS=2504;DP=18872;EAS_AF=0;AMR_AF=0;AFR_AF=0;EUR_AF=0;SAS_AF=0.0031;AA=...
0
votes
1answer
59 views

Can't locate installed software in Ubuntu 14.04

I successfully installed Padre (Perl editor) from software center. But can't locate the installed app. Tried searching but couldn't find. Please help. Screen shot is attached Screen shot
1
vote
2answers
172 views

Running a Perl script as cronjob is not working while manual starting does the job

I have 3 cronjob entries (crontab -l) the first entry is a Perl script what creates a LVM backup of a virtual machine and the other two are just sh files performing mysqldump. Well however, I edited ...
0
votes
1answer
43 views

How can I scan all connected USB drives for a file?

I have an install of Ubuntu and I would like to run a script (bash, perl, python, whatever) that will scan all connected USB drives and report if it finds a text file. Could anyone guide me on how to ...
0
votes
3answers
37 views

Convert Number of Decimals Through a Text File

This question's solution may revolve around perl, sed or awk and unfortunately I am not familiar with any of those. My purpose is to convert a computer-generated text file to give it more human-...
0
votes
1answer
87 views

Unable to install qt5.5 from git in Kubuntu 14.04.3?

I tried to install qt5.5 from git and after doing the following git clone git://code.qt.io/qt/qt5.git -branch5.5 cd qt5 ./init-repostiory ./configure I am getting the following error: You ...
0
votes
1answer
144 views

404 not found on ubuntu 15.10

I have installed Apache2 and perl on ubuntu 15.10. When i try to run a perl program on the server it says. Not Found The requested URL /cgi-bin/test.pl was not found on this server. But i'm able to ...
1
vote
2answers
46 views

data file re-organisation

I have a .data and I need to re-organise it so that 3 consecutive lines are joined together in a single line. Just to be clear, I have the following ... D611102 = 'SVM_PRS_Hydr_L01', T = 0.0, C = 3....
1
vote
3answers
107 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 ...
0
votes
0answers
39 views

why my desktop entry file not working for a perl program?

[Desktop Entry] Name=hotel Version=1.0 Encoding=UTF-8 X-GNOME-FullName=hotel Type=Application Categories=Application;Utility; Path=/home/yathayed/yedukondalu/programs/perl/advanced/tk Exec=perl /home/...
0
votes
0answers
536 views

Package unmet dependecies Perl-base Ubuntu 14.04 64 bit

i'm trying to sudo apt-get upgrade , but there is error. it happened when i try to install too. running sudo apt-get -f install here is the error return : dionajie@dionajie-Notebook:~$ sudo ...
1
vote
2answers
301 views

Ubuntu 14.04 LTS - what version of padre should I use? [closed]

I am a new, not experienced user and just installed Ubuntu 14.04 LTS. What version of padre should I use ? Any recommended sources ?
0
votes
0answers
22 views

Perl file doesn't work in the Terminal [duplicate]

I have a perl.pl and want to perform it. Why doesn't work?
2
votes
3answers
206 views

How can I divide an output with 2 delimiters?

By dividing with the "·" and " " characters, I would like to turn this: Hel·lo my name is E·ric To this: Hel·lo my name is E·ric Hel·lo my name is E· Hel·lo my name is Hel·lo my name Hel·lo my Hel·...
0
votes
2answers
51 views

please explain while loop in the PERL code?

This is some code to find word,chars,lines in a file. Can anyone please explain the while loop? open(FILE, "<data.txt") or die "Could not open file: $!"; my ($lines, $words, $chars) = (0,0,0); ...
2
votes
4answers
3k views

Accessing MYSQL through terminal

I just installed LAMP in my computer through commandline.Now how can I access MYSQL prompt from commandline?I need to use MYSQL to create tables,views and then access them from my Perl script.
2
votes
2answers
410 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 ...
1
vote
1answer
87 views

Sequential renaming of files

I found an answer for zero-padding numerical filenames which works fine for renaming filenames as follows : 1.jpg > 00001.jpg 2.jpg > 00002.jpg . . . 9.jpg > 00009.jpg That uses the ...
2
votes
2answers
799 views

can't install cpan module GD

Since I failed to install Image::Magick on my non-GUI Ubuntu server Ubuntu 14.04.2 LTS (read about it here), I tried to install another image-manupulation tool that can be used from a perl-script: GD. ...
2
votes
1answer
222 views

batch rename zip files based on contained file names

I've got a directory with 15000 zip files. I'd like to rename all files which, when unzipped, contain a file of the form YYYYMMDD_IPC.csv where YYYYMMDD happens to be a date but for the purposes of ...
0
votes
1answer
23 views

Problem with rename and mask the point

Lets assume that I want to rename a file: "topography_9x9._001.png" to "topography_9x9_001.png" I would use rename -n s/9\./9/g topography_9x9._001.png renamed as topography_99_001.png Why ...
6
votes
1answer
15k views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories able to create Excel 2007+ xlsx files from a script (python or perl) My requirements: 100% compatible Excel XLSX files. Solid ...
1
vote
1answer
31 views

problem Gunzip a file in perl [closed]

I have below file: 9001_20150918165942_00085.xml.gz I want to gunzip it "9001_20150918165942_00085.xml", how can I do it in perl. Regards, Bhushan
0
votes
1answer
588 views

installing getopts.pl into the perl installation

I need to install getopts.pl into my Perl installation. The software I use request that getopts.pl should be part of the Perl installation or my path need to be appropriately pointing to the paths of ...
1
vote
1answer
345 views

perl net::pcap installation on Ubuntu

I am trying to run a perl script that uses Net::pcap but it doesn't work for me, I installed libpcap-dev, libnet-pcap-perl and libpcap. After that I downloaded Net:pcap from CPAN, and now I don't know ...
2
votes
1answer
878 views

How to stop cron from sending email when there is nothing in STDOUT or STDERR?

Ubuntu 14.04lts with Perl 5.18.2. This is a special case where Google did not help me. I do not want to turn off email for all cron jobs, I have about 15 jobs in my crontab. I need to see the ...
-2
votes
1answer
192 views

How to edit INC with latest library in perl

How can I avoid the error below when running a Perl script? Can't locate YAML/XS.pm in @INC (@INC contains: ../../../YAML-LibYAML-0.35/blib/lib/YAML/XS.pm /app/utp/utp/apps_oper/perl5lib ../../../...
2
votes
4answers
904 views

Parse lines with specific pattern out of file

I have a file that looks roughly like this : [25]:0.00843832,469:0.0109533):0.00657864,((((872:0.00120503,((980:0.0001 [29]:((962:0.000580339,930:0.000580339):0.00543993 ((758:0.000598847,726:0....