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
votes
0answers
15 views

how to fix perl problem ? i have perl v5.14.2

Can't locate object method "initialize" via package "Pod::Usage" at /usr/local/globus-4.0.6//lib/perl/Pod/Usage.pm line 531.
-1
votes
2answers
22 views

Unable to locate package perl(Net: & IO::Socket:)

When i am trying to use following command it shows following error root@RR-DE-NMS-1:~# apt-get install 'perl(Net::SSLeay)' 'perl(IO::Socket::SSL)' Reading package lists... Done Building dependency ...
1
vote
0answers
27 views

list all files in parent and sub directory using perl [closed]

$dir="/home/httpd/cgi-bin/r/mera"; $dir1="/home/httpd/cgi-bin/re/plan"; opendir(DIR,"$dir")||die"error"; while($line=readdir DIR) { print"$line\n"; opendir DIR1,"$dir/$line"||die"error"; ...
3
votes
4answers
60 views

Replace string with multiline file content

I need to replace string SALT in a file with content of another file. Problem is that the input file has multilines. I tried something like this in my bash script: SALT=`cat salt.txt`; sed ...
3
votes
4answers
75 views

Find and replacement of the numerical part of a particular string with increased value using terminal command [duplicate]

The inputfile is, test00.dat test07.dat test03.dat aram22.dat test09.dat aram09.dat test13.dat I need the output file as test01.dat test08.dat test04.dat aram22.dat test10.dat aram09.dat ...
1
vote
1answer
27 views

Command-line perl regex replacement: replacement string contains utf8

Say you have a file named test.txt with the following lines: ಕದಂ.ಬ कदम्ब. Then, suppose you want to replace each dot following a devanagarI unicode character (ie in कदम्ब) with a ।. Then, you might ...
1
vote
1answer
49 views

Find and replace regular expression (matching unicode character class Devanagari) in multiple files

Say you have a file named test.txt with the following lines: ಕದಂಬ कदम्ब Then, suppose you want to replace each devanagarI unicode character (ie in कदम्ब) with a D. Then, you might think that the ...
0
votes
0answers
27 views

how to convert xlsx format data to csv format using perl script

i am trying to convert xlsx format file to csv format file using Perl script. but its not converting to desired format, #!/usr/bin/perl use strict; use warnings; use Spreadsheet::Read; use ...
0
votes
0answers
16 views

problem in creating own module for reuse

i wish to create my own module and i want to use that module name for further use, the main concept is, create a module which should contains subroutines for line count, word-count and character ...
0
votes
0answers
12 views

Using switch statement with Ubuntu in Perl [duplicate]

I am an IT student and taking UNIX/Perl class. I am using vi to write Perl program with a switch statement. I am running into this error: "Can't locate switch.pm in @INC (you may need to install the ...
0
votes
0answers
13 views

error in build to process builder in java

I have devloped myself tagger and I want to host on the web. my server is based on jsp. But This tagger is based on svmtool and it has been written in Perl script. That's why, I have created one ...
0
votes
0answers
121 views

Install Ububuntu on Asus X205TA (error)?

I am trying to follow this Instructions to install Ubuntu 14.10 on ASUS EeeBook X205TA , but after running the first line of code, I get this error: Unable to locate package libfont-freetype-perl ...
0
votes
1answer
53 views

How to find and replace a particular string by increasing its numerical part? [duplicate]

My input file is, ami41 ami56 ami23 ami67 ami45 ami34 ami88 jama66 tumi234 bichi23455 susami345 Using a single command line I need the output as, ami42 ami57 ami24 ami68 ami46 ami35 ami89 jama66 ...
0
votes
1answer
36 views

when i am trying to run a perl file i am getting permission denied error

/usr/local/share/lxr/lxr-2.0.3/scripts$ ls ANSI-escape.sh ContextMgr.pm LCLInterpreter.pm QuestionAnswer.pm set-lxr-version.sh VTescape.pm configure-lxr.pl kernel-vars-grab.sh ...
0
votes
0answers
20 views

atftpd pcre problem

I am trying to build ris server using atftpd and samba but the problem is tftp client request files in \path\to\file format and i want to change this to path/to/file format. So i wrote pcre file for ...
11
votes
3answers
358 views

Is there a Perl or Python script I can write which can minimize the Gnome terminal window?

I'm on Ubuntu 14.04 with the old-style GNOME setting from the GDM. (I don't like the new Unity interface.) Is there a way I can create a command that I can type in my terminal window to minimize it? ...
2
votes
1answer
75 views

Running SCP via Perl system() call when running as a service

I created a Debian style service that monitors a database and copies files to a remote machine depending on the data in the database. When this runs "standalone", the entire process works ...
0
votes
1answer
88 views

How do I repair / reconfigure a broken Perl package when apt and dpkg both depend on Perl?

Recent system updates resulted in errors including this: debconf: Perl may be unconfigured (Can't locate Fcntl.pm in @INC (you may need to install the Fcntl module) (for which I submitted bug ...
0
votes
0answers
26 views

Error showing while using check_vmare_api

I am getting error while running check_vmare_api perl command. CHECK_VMWARE_API CRITICAL - Error: Server version unavailable at <'https://1.1.1.1/443/sdk/vimService.wsdl'> i am using ubuntu 14.04 ...
0
votes
0answers
57 views

why i don't receive DHCPDiscover message from server using dongle and why same code give DHCPNac on wifi

I have written a script using perl and i have tested it using two different ways: Using a wifi connection (I have router which is directly connected to server and i am connected to that router). ...
4
votes
2answers
136 views

Remove all English text and leave Arabic text

This question is a lot like this. I just need a slight modification. I have a csv file that looks like this y(document).ready(function($) { $('#wp_mep_2').mediaelementplayer({ m:1 ...
0
votes
1answer
85 views

How do I write perl code for following example? [closed]

I have file content like this: aaa accounting exec ... aaa accounting exec ... aaa accounting commands .. aaa accounting commands .. aaa accounting commands .. aaa accounting commands .. aaa ...
0
votes
1answer
149 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 ...
0
votes
0answers
43 views

Buffer Overflow on pacpl

I have a file in my external HDD called a.mp4.. When I try the command: pacpl -v --bitrate 48 --to mp3 --outdir "/home/user/SoundCloud/output" "/media/user/MyPassport/a.mp4" I get the output/error: ...
1
vote
1answer
77 views

Add Prefix name in a file in Perl Script

I am trying to write a perl script to add the prefix name on the file (~100 files), but i am failed to get it done. Example case that what I means: abc.jpg change to NYear_abc.jpg def.jpg ...
0
votes
0answers
12 views

Bioperl percentage bar

I have the next perl script that convert fastq file to fasta file, and make a count of the sequences in the fasta file; I would like to add a percentage of advanced like a percentage bar or printing ...
3
votes
1answer
251 views

Perl may be unconfigured?

Hi I have error when I want to install,remove or configure my package this is the error debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the ...
0
votes
0answers
12 views

Run perl script from cgiperl

I am new to cgi per. I have perl script actually works. I like execute my perl script from cgiperl and print the out in web page. Any help? 1) take a text file as inout from webpage and put it in a ...
0
votes
0answers
32 views

Errors in Simple.pm when using debmirror

Hi since the update to utopic debmirror does not work any more due to errors in LockFile/Simple.pm. The error is: Use of uninitialized value $stamp in chop at /usr/share/perl5/LockFile/Simple.pm line ...
-1
votes
1answer
258 views

Resolve error while installation!

i am getting the following error while installing anyhthing: installArchives() failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = ...
1
vote
4answers
119 views

search for duplicate photos

I have photos, in folder A, they also exist, in folders B and C. They have the same filenames. How to search for them and delete them from folder A? A perl script or something would be ideal since I ...
1
vote
3answers
86 views

csv file adding and removing characters from rows [closed]

I have a big csv full that looks like so else if(a,b,c,d,e) else if(a,b,c,d,f) I want to make it look like so else if(a+x==b and b+x==c and c+x==d and d+x==e) else if(a+x==b and b+x==c and c+x==d ...
1
vote
1answer
556 views

Several perl packages (including cpan and re.pl) not working after upgrade from 12.04 to 14.04

Several perl packages stopped working after upgrade from 12.04 to 14.04. For example, cpan gives me: Attempt to reload Scalar/Util.pm aborted. Compilation failed in require at ...
1
vote
3answers
82 views

Replace a specific section of code

I don't know what could do this, sed, vim, whatever. Lets say I have 30 functions, to keep it simple, i'll show 3 #first function AddOne = [ a+1==b, b+1==c ] # second function ...
0
votes
2answers
513 views

After performing apt-get dist-upgrade Perl scripts will no longer ignore invalid SSL certificates on 14.04

Good morning all, Last week I decided to run the commands to upgrade packages on my 14.04 Server to ensure that I was patched for the recently found Bash vulnerabilties. Per the info here ...
1
vote
2answers
101 views

Looping through csv, removing patterns

I have a question similar to my earlier question, but a bit different say you have 10 columns on each line, and 100000 lines, I want to check if each row for the following patterns: If a row looks ...
3
votes
2answers
2k views

Perl 5.20.1 for Ubuntu 14.04

How to update to the latest perl in ubuntu 14.04 x64? Ive tried via apt and and cpan alredy and core wont update.
3
votes
3answers
2k views

Ubuntu Upgrade, Perl Version Broke ZImbra

Kind of in a bind here, since I heard about the bash bugs last night I decided on upgrading all off my server, not just the packages but the complete OS, it worked fine on all my servers, except my ...
0
votes
0answers
135 views

CGI script seems to run but output file is not stdout but name of script file

I have the latest version of Ubuntu 14.04 installed on my laptop. I have installed the LAMP server via tasksel. I followed the instructions for Apache 2.4 from Apache's httpd.apache.org website on ...
1
vote
1answer
142 views

Apache configuration problems? Why Perl scripts can't be executed - browser download scripts

I've got wrong apache configuration. My script don't want to be executed and browser trying to download it as a file. <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName president.com ...
1
vote
0answers
45 views

14.04 update problem with executable file mode

Here's the problem: I create a file called foo.pl containing #!/usr/bin/perl as the top line I execute chmod u+x foo.pl I type ./foo.pl at the command prompt and get the following bash: ./foo.pl: ...
0
votes
1answer
254 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" ◀ ...
0
votes
0answers
23 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
774 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. ...
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
4
votes
3answers
525 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
217 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 ...
1
vote
0answers
243 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
805 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
257 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 ...