Perl is a powerful, high level programming language. Questions about Perl should be limited to the Perl development environment, running Perl, or using Perl to automate tasks on your computer.

learn more… | top users | synonyms

1
vote
2answers
135 views

Perl comments on a Mac

I am trying to run a Perl script I wrote from the command line. The code is: #!/usr/bin/perl #open file open(READFILE,"<prune.txt") || die "Couldn't open file"; #read line while (<READFILE>) ...
1
vote
1answer
203 views

Installing libpng on a Mac with Maverick

I want to install libpng library on my Mac, which runs under Mavericks. Here is a simple Perl script to check if it is ok: use GD; my $gd = GD::Image->new(); my $ok = $gd->can('png') ? 'Yes' : ...
1
vote
1answer
101 views

Which tool is most flexible for searching my whole system, locate or mdfind?

Follow-on to Spotlight and the locate command don't search *all* folders: The steps mentioned by Gordon Davisson were performed; .bashrc was entered in the Spotlight search field, and System and ...
2
votes
0answers
2k views

Xcode: create new custom templates and code snippets?

I'm trying to tame Xcode for writing things in Perl. Naturally, I'd like to use the "IDE features", not just the text editor. That includes Perl-specific templates, which brings me to the question: ...
0
votes
0answers
52 views

Bugzilla mail template not supported in outlook

I have installed bugzilla 4.2 version in linux centos 6.4. Everything working fine except mail format. It is not supporting in outlook. whenever we raising the bug from bugzilla mail delivered in ...
0
votes
1answer
135 views

Find number in string and replace it

I wrote C++ code and now I want to replace the number in a string by using shell scripts. The part that needs to be replaced: if (random<=90) How I can change the 90 from a shell script? I ...
0
votes
2answers
84 views

sum numbers in different lines in shell

i have 8000 lines similar to this <Flow flowId="1" timeFirstTxPacket="+0.0ns" timeFirstRxPacket="+924100.0ns" timeLastTxPacket="+199984927558.0ns" timeLastRxPacket="+199675473275.0ns" ...
0
votes
1answer
79 views

Rename files from in1.jpg, in2.jpg, in3.jpg, etc to out0001.jpg, out0002.jpg, out0003.jpg etc using perl script `rename`

I would like to rename a large number files with names in1.jpg, in2.jpg, in3.jpg, etc to out0001.jpg, out0002.jpg, out0003.jpg, etc. Grateful if somebody would suggest a solution using the perl script ...
1
vote
1answer
582 views

extract characters between first and second underscores of filenames and count such files in linux folder

I would like to extract characters between first and second underscores of filenames in a folder and count such type of files present in it. The folder contains files in a particular format such as : ...
0
votes
1answer
86 views

Perl script to fetch a particular directory and modify the xml file

I have written a perl script to modify xml file which is working fine for only one file. I want my script to fetch the xml folder and modify the xml file inside it. Like that it should run for all the ...
-1
votes
1answer
325 views

perl scrip to insert multiple line after a specific string

I am trying to insert multiple line between a two specfic line in perl. But my code is having some issue which i am not able to figure it out. open(FILE,"abc7.xml") || die "Can't open file: $!"; ...
0
votes
0answers
226 views

Installing R core rpms on centos - Need a best way to resolve dependencies

I am newbie to the Linux. I need to know the best way to handle the dependencies. The issue is, I need to install R - core and R - dev (R language packages) on an platenized centos linux host on ...
0
votes
0answers
30 views

PERL executable size getting reduced automatically after few days

On one of my RHEL 5 machine, there is one PERL executable which runs under cronjob at frequent intervals of time. The strange thing observed is PERL executable size is getting reduced automatically ...
0
votes
1answer
123 views

SortTV perl script error

I'm trying to use a perl script named SortTV (http://sourceforge.net/projects/sorttv/) Every dependencies is installed but I got an error & can't understood it... It's not a specific problem of ...
0
votes
1answer
1k views

Install XML::Parser

I'm trying to install some perl module but got strange error. sudo cpanm XML::Parser cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc make[1]: Entering directory ...
1
vote
1answer
528 views

Install perl module with dependencies

I'm trying to install a Perl module like this : pi@raspbmc:~$ sudo cpan HTTP::Date Cpan get the file Checksum is ok uncompressed successfully But I got this error : Using Tar:/bin/tar xf ...
0
votes
1answer
89 views

shell or perl script to replace the double quotes with their unicodes

I am having two files names as a.html a.xml in a folder and in a.html file i have a tag <div class="snippet abstract"> We present a new "model" for multiple-input-multiple-output ...
0
votes
2answers
60 views

How can 2 or more instances of the same program to communicate in local network? [closed]

I want to create program which will be in use for few computers connected in local network. Basically the program aim is to keep track of all tables in a bar ( lets say ), which are reserved. When ...
0
votes
1answer
118 views

how to get Geo::Coder::Many with cpan?

Ubuntu is installed for development of a Perl project. aptitude search Geo-Coder i libgeo-coder-googlev3-perl - Perl module providing access to Google Map Aptitude does not refer to ...
0
votes
2answers
39 views

Where to place an executable Perl script?

I'm now planning a solution that has to call a script that's running on a Linux \UNIX host. I'd prefer to place that script in a folder that exists in all kinds of Linux and UNIX. This helps me to ...
2
votes
2answers
7k views

Apache 2.0 - Disabling the HTTP TRACE and TRACK methods

I use Apache 2.0 as HTTP server and specific purpose Perl-based HTTP clients. Until now I disable TRACE and TRACK methods using the following configuration in the httpd.conf file: RewriteEngine ...
1
vote
1answer
1k views

How can I fix broken apt/perl libraries?

I've got a Raspberry Pi set up as a web server, everything all working well until 5 mins ago, and I seem to have messed up man-db, apt or some perl library. apt-get doesn't seem to be updating and ...
1
vote
2answers
2k views

gcc not finding header file though its path has been included with -I

I'm trying to install a module (Package::Stash::XS) via cpanm, but the installation is failing due to a gcc error. The command gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing ...
2
votes
1answer
135 views

Could not perform immediate configuration on 'perl'

I'm trying to upgrade a debian squeeze system to wheezy. I've done an apt-get update && apt-get -V upgrade on squeeze, then changed my source.list to reference wheezy not squeeze. then, ...
1
vote
1answer
276 views

How do i make a perlbrew version my default?

I work on a Mac, and my default perl version is v5.12.4. For 99% of the time I use a perlbrew install I have, as I for my work need numerous modules I don't want to install on system perl. Is there a ...
7
votes
1answer
2k views

Shell script to find all types of files in a directory with their count

I want to write a shell script or alias to find the number of different types of files in a directory. For example, sample output of script should be: *.h 20 *.c 40 *.cpp 10 Makefile 3
2
votes
1answer
106 views

Perl program won't run on arm6, but it runs on my 64bit computer

I'm trying to run [pisg][1] on my raspberry pi, which is running archlinux arm, and every time I try to run it, I get: Root ~>pisg -cf pisg.conf Warning: Couldn't parse -cfg option Could ...
0
votes
2answers
654 views

Attempting to read data from a text file and inputting the variable text to a script

I have a file with 25 single word entries, I need a script to read through the file one line at a time and input the variable phrase into a second script that will generate a individual file based on ...
10
votes
2answers
769 views

How to cut a file to a given size under Linux?

I want to shrink a file's size by brute-force, that is, I don't care about the rest, I just want to cut the file, say by half, and discard the rest. The first thing that comes to mind is Perl's ...
1
vote
0answers
303 views

Solaris: ssh -tt with no output

I have access to a machine running SunOS 5.10 (called solaris). I also have access to a RedHat machine (called redhat). ssh -tt seems not to give me output if run from solaris to solaris, but works ...
2
votes
2answers
2k views

How to install a 32 bit version of perl on 64 bit Cent OS server?

I want to install 32 bit version of perl on my Cent OS server which is of course of 64 bit..Output of perl -v is [root@M-229 ~]# perl --version This is perl, v5.10.1 (*) built for ...
2
votes
1answer
129 views

Clean up filenames using data from a text file

I need to clean up a bunch of folder file names. Possibly even the file titles as well. I was currently using this Perl script to do so but I ran into some problems. If the file name already has ...
2
votes
2answers
1k views

chown function in Perl

I have problems with the working of the chown function in Perl. I have a script: #!/usr/bin/perl $file = ""; $file = $ARGV[0]; $user = "jboss"; $group = "jboss"; if ($file eq "") { ...
0
votes
0answers
211 views

Launch application with GUI from CGI script

Is it possible to launch application with GUI from CGI script (on Windows 7)? Let's say that I want to launch Video Lan (VLC). How can I do it? 1st attempt: I tried to use exec function in Perl. ...
0
votes
1answer
93 views

Fedora bleeding edge Perl repo?

Are there any Fedora YUM repositories that would contain the very latest stable version of Perl (at the time of writing, 5.18.0)? The Fedora site says that won't even be shipped stock until Fedora ...
0
votes
3answers
161 views

my perl scripts that use Net:Pcap dont work when i port them onto a vm on my server

I am trying to run a perl script that i have scripted to dump the packets from my network, i am using the Net:Pcap and netpacket modules. They are working fine on my and my friend's laptop. but when ...
1
vote
0answers
116 views

Permissions tar extraction to nfs share from a Perl script

As part of an installation procedure of a piece of software, I use: curl -s <url-to-targz> | tar -p -x -z -C / inside a Perl script (I use qx($command) or system($command), either will ...
1
vote
1answer
100 views

Backup many files by keeping all old versions

My question is about saving many files from many directories in only one directories by keeping all old versions of the files. I have about 10 directories with very similar files (10 backup ...
1
vote
1answer
132 views

Optimum parameters for audio slicing using FFMpeg

I am planning to use Perl to extract audio from media files through FFMpeg. Now as far as I know, FFMpeg needs lot of parameters like bit-rate, etc which it used to extract the audio. So for one ...
0
votes
2answers
344 views

Regex for unix paths

What would be the correct perl regex for detecting only Unix paths? ./dir1/dir2/file.ext - invalid ./dir1/dir2/ - valid ./dir1/dir2 - valid
0
votes
1answer
266 views

bad Make-Test while running installation of a perl module

i run opensuse 12,3 - all is installed fresh now i wanted to install mozepl and www mechanize firefox this ended up in a bad Make-Test while running installation of a perl module # ' ...
0
votes
1answer
231 views

Guide me to run a perl cgi program in browser,i am using windows7 and installed strawberry perl

Please help me for this request, I am a beginner at CGI and Perl I tried to install Perl, but I am getting the following error: HTTP Error 404.3 - Not Found The page you are requesting ...
0
votes
1answer
632 views

Apache “70007 timeout errors”

I'm sporadically getting Apache 70007 timeout errors from (I think) Perl CGI scripts. I thought the problem was my scripts were exceeding the Apache's TimeOut value, but I wrote a sleep script that ...
0
votes
1answer
301 views

The outputs of ps and top do not match

I have a situation where I have a process, say script.pl (here it is), which seems to stick around in the output to ps auxw | grep script.pl, sometimes when load is heavy it sticks around for several ...
0
votes
1answer
266 views

File size changed after put through FTP

I'm trying to send a file to a FTP server using Perl. The program works almost well, but the file size changed (file size on remote host is different from localhost). After checking, i realize that: ...
0
votes
0answers
543 views

Windows 2003 (actually XP x64) can't read SSL signature if it's SHA-2 (SHA 256/384/512)

I have a Windows XP Professional x64 virtual machine to run some HLDS processes. I chose the x64 edition as I already have a license for it, and as it uses the Windows Server 2003 kernel it'll be more ...
0
votes
1answer
84 views

Perl or Sed to remove a web virus

I recently ran across a bit of code injected to all of the files on a web site and I need to use perl or sed to remove it across all the files. I am having trouble coming up with the exact pattern ...
0
votes
1answer
310 views

How do I make my Perl scripts act like normal programs on Linux

Perl programs I've written earlier were simple text processing scripts, for executing them I use to use terminal. Now I am learning GUI programming(I want to make some games as a hobby), using Tcl/TK ...
1
vote
1answer
444 views

Perl extensions not searched for in @INC?

I'm on Linux, with no root access, and have installed an rpm locally (in /home/me/local, rather than /usr). This is fine, except that the rpm (rxvt-unicode) requires some Perl modules, and the default ...
1
vote
2answers
111 views

Do I need a cloud server?

I have a certain setup on my local Linux machine and I wonder how can I convert it to a web service platform. What I have is: Command line Perl application which periodically downloads certain data ...