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
224 views

what is (3pm), when I run apropos Unicode in see entries like this Unicode::CharName (3pm)

apropos unicode Pango::ScriptIter (3pm) - used to break a string of Unicode into runs by text Unicode::CharName (3pm) - Look up Unicode character names Unicode::Map (3pm) - (unknown subject) Unicode:...
2
votes
2answers
2k views

Script to prefix filename with folder

I am trying to find a script that will work in Windows and prefix all files in a folder with the containing folder name. For example, in the folder C:\FolderName1 there are 3 files: hello.jpg test....
0
votes
1answer
435 views

Perl installation on Debian vs CentOS

As described here at http://www.directadmin.com/forum/showthread.php?t=43558&page=1 I am trying to find the equivalent apt-get install commands for the current version of Debian for: yum ...
-2
votes
1answer
76 views

Need script FOR loop in shell or perl

I am looking for loop condition which would help me to run below commmand. mccli backup show --name=abc.com name=server_name I dont want to run the command everytime with changing server name. ...
0
votes
1answer
232 views

How do I run the sphere-slicer.pl perl command to make a photo into a sphere?

I was looking for a program to slice pictures somehow to paste it on a globe(sphere). I found ip-slicer in this website. http://www.bruno.postle.net/2001/ip-slicer/ The problem I have is that I don't ...
1
vote
0answers
295 views

Mac 10.7 - Cannot use make utility after installing xcode

I'm trying to install a perl module that I manually downloaded from CPAN, but am encountering difficulties. $perl Makefile.PL Welcome to JSON (v.2.53) ============================= If you install ...
3
votes
3answers
706 views

create PDF montage in vector format

I have a folder full of images in PDF format, and I would like to merge them all into a single PDF in which there are many images on each page, but still in vector/PDF format. The ImageMagick '...
1
vote
3answers
5k views

Perl command not found

I am new to Unix. I am trying to Run a Perl script on Fedora 14 machine. I wrote the script and saved it in a file called PerlOne.pl and changed its permission to 755. This is what it has #!/usr/bin/...
2
votes
2answers
1k views

Piping bash output to perl script's arguments

I have the following bash command: find repo -name '*.c' What I want to do is use the files returned as arguments to my perl script, so that it's equivalent to running: perl ./myscript file1.c ...
0
votes
4answers
974 views

iMacros-like program for terminal?

Is there such a program for Terminal like the iMacros plugin for Firefox, that can record what I did, then automatic do the work I have done? I hope that there is such a program to help me do the ...
1
vote
0answers
26 views

ContentAssist delay on editors for Eclipse?

When using the Java Editor for Eclipse, one can set the ContentAssist delay to 0 seconds (in the Java Editor ContentAssist options). In other language editors, e.g EPIC (Perl Integration), this option ...
3
votes
2answers
2k views

Users using Perl script to bypass Squid Proxy [closed]

The users on our network have been using a perl script to bypass our Squid proxy restrictions. Is there any way we can block this script from working?? #!/usr/bin/perl ###############################...
0
votes
1answer
1k views

Apache CGI lp: Permission Denied

I moved a Perl CGI script from an old RedHat Linux box to a more recent CentOS Linux box and certain system commands no longer work. for example system("ls -l filename"); works OK, but system("lp -d ...
1
vote
1answer
554 views

BioPerl installation and execution issue

I have installed Active Perl in Windows XP. Through Perl Package Manager I have installed BioPerl repositories. But while trying to execute this BioPerl program: #!/usr/bin/env perl use Bio::Seq; use ...
1
vote
1answer
4k views

Where do I find Nmake for Windows XP

Regarding BioPerl installation in Windows XP, I have installed Active Perl in Windows XP, and by using Perl Package Manager I have installed the BioPerl Repositories too. But I am not able to run the ...
2
votes
1answer
1k views

Bulk insert bugs into bugzilla from another Bug tracker

I am looking for a script and/or examples of scripts for bulk importing/inserting bugs into a new installation of bugzilla 4. We are moving from an old DevTrack and need all our bugs inserted. Our ...
1
vote
3answers
56 views

Quickly uploading images to an imagehosting site and getting the URL

A Perl or Python script would be perfect, only I've yet to find one. I saw some but they're all work in progress. In short, I need a [thing] for quickly uploading an image to an imagehosting site (...
2
votes
2answers
561 views

How to remove three consecutive line feeds in a Makefile rule?

I need to search for and replace three consecutive newline characters in an input file and filter them out of an output file for a makefile rule on Centos 4. I am using GNU sed v4.1.2 and GNU make v3....
0
votes
1answer
130 views

rsync on Lion failing with Perl error

I'm trying to rsync a bunch of photos from one mac to another. rsync -av /Users/billybobob/Pictures/ sarahsansskirt@192.168.1.4:/Volumes/Harddrive/Billybobob_Photos I've got the keys correct ...
2
votes
1answer
109 views

Emacs inserting boilerplate twice

I have an entry that is basically identical to the one found here: (defun perl-boilerplate () (if (not (file-exists-p (buffer-file-name (current-buffer)))) (cond ((string-match "\.pl$"...
0
votes
1answer
291 views

How to use Perl Plugins in Pidgin

I am trying to install a perl plugin to pidgin, by placing the .pl file in the ~/.purple/plugins directory, as described here. The problem is that when I put the .pl file in the directory and open ...
1
vote
2answers
36 views

Find script with early cutting branches on first occurences

It must exists, my problem is how to express my need. When I search for a given filename, Iwant the search stop searching the current branch when it finds a first occurence, BUT continue to search in ...
0
votes
2answers
2k views

Downgrading Module or Downgrading to perl 5.10 on Ubuntu 12.04

I have a requirement to have Storable module version 2.07 instead of latest 2.08 version installed in perl. I tried installing from backpan repository and it seems to install fine, however when script ...
0
votes
1answer
932 views

Macports irssi & perl5 installation issues

Long time reader, first time poster. Big, appreciative thanks for everyone's collective questioning and answering here and at stackoverflow, it's helped me quite a lot over the time I've been learning ...
1
vote
0answers
35 views

lwp-rget changes file format automatically to .bin?

I'm trying to recursively get an html page to get everything that's there and save it to my directory. Lwp-rget from perl allows me to do this but I'm having the problem that its getting all the ...
1
vote
2answers
339 views

Where to obtain logs after Xorg freezes

I have this issue where a perl script will sometimes freeze Xorg. It's an extension for urxvt that detects URLs and allows me to "launch" them in the browser. Sometimes, upon launching, Xorg will ...
1
vote
0answers
607 views

Get sublime text 2 (sublimecodeintel) to parse mason

So Sublime Text 2 seems to getting a lot of love lately. I am using the Sublime Code intel plugin, https://github.com/Kronuz/SublimeCodeIntel for auto completion. The problem is, it does not recognize ...
2
votes
1answer
46 views

Synchronizing perl packages from one install to another

I currently have perl 5.8.8 installed on a production linux system, and there are many, many packages installed. I am planning on installing perl 5.16 under a prefix (from source). Is there any way ...
0
votes
1answer
290 views

Ubuntu: perl: undefined symbol: PL_perl_destruct_level

Recently, I tried to crosscompile Perl on my Ubuntu system but made a mistake. The finished binary was installed on my productive system besides the already present perl version. Ever since I get the ...
3
votes
1answer
1k views

SSL trouble in Perl's LWP after Debian Wheezy upgrade

I just upgraded to Debian Wheezy from Lenny (long story) and a few of my Perl packages didn't make the upgrade for some reason, among them Crypt::SSLeay (libcrypt-ssleay-perl). I was unable to ...
1
vote
1answer
201 views

Searching current directory and 1 subdirectory for files with .txt extension

Using the 'ls -R' command in perl, what is the parameter to find files with a .txt extension under the current and 1 subdirectory? Also I how would I count the number of files and if the number is one ...
2
votes
1answer
1k views

Perl error while compiling Munin transmission plugin

Could you please tell me what this error says?: Can't locate JSON/RPC/Client.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/...
2
votes
2answers
2k views

Perl EPIC Not recognising installed CPAN modules

Eclipse on a mac, was working fine adding new modules until I Installed Text::CSV_XS which Eclips doesn't recognise as added to @INC For instance use strict; use SOAP::Transport::HTTP; SOAP::...
0
votes
1answer
263 views

Converting between a vim replace and a perl pie replace

So I have a file test.txt, that contains, home -> range If I edit the file in vim and run the command %s/^\(.*\)->\(.*\)$/\2 ::= \1 ;/g it converts the file to range ::= home ; which is ...
2
votes
1answer
2k views

Notepad++ Perl Multi-line comment syntax highlighting

Is there a way to set notepad++ to highlight a Perl multi-line comment block as comments (currently there is no highlighting - it's black on white). The type of comment I am talking about is of the ...
0
votes
1answer
460 views

Linux replace ^M$ with $ in csv

I'm working on migrating from MDaemon to Google Apps. As part of this process I'm exporting the contacts and calendars for all of our users into CSV files then reading them into a perl script and ...
0
votes
1answer
3k views

how to install libio-socket-ssl-perl on tiny core Linux?

I found this commands on another pages: apt-get install libio-socket-ssl-perl tce-load -wi libio-socket-ssl-perl but doesnt work. Any idea to install libio-socket-ssl-perl on tiny core ...
3
votes
2answers
2k views

perl - translate sed to perl

The following command work fine on Solaris ( delete line only if last character is ":" ) sed -e '/:$/d' < foo > foo.new how to do the same in perl ? ( the reason for that because I not want ...
0
votes
1answer
2k views

'perl' is not recognized as an internal or external command: Even when there is nothing about perl?

Ok, I just installed MinGW on my PC and to used g++ command on cmd and it says, 'perl' is not recognized as an internal or external command, operable program or batch file. I just checked PATH ...
0
votes
0answers
133 views

Mock --init failing on perl command

I have a rather unique situation here that about 2 hours of googling couldn't help me with. I'm building a project using Cmake that will eventually generate rpms for target architectures using mock. ...
5
votes
2answers
8k views

How can I identify non-ASCII characters from the shell?

Is there a simple way to print all non-ASCII characters and the line numbers on which they occur in a file using a command line utility such as grep, awk, perl, etc? I want to change the encoding of ...
1
vote
1answer
5k views

Perl for matching with regular expressions in Terminal?

I'm trying to familiarize myself a little with Perl to use for regular expression searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do ...
1
vote
2answers
142 views

Installing a second version of e.g. git, perl and or python on osx lion

At the moment i am running git 1.7.5.4, perl 5.12.3 as well as python 2.7.1 on osx 10.7.3, which were all included in the basic system setup. Applying the "which" command the locations are: /usr/bin/...
36
votes
7answers
46k views

When to use Bash and when to use Perl/Python/Ruby?

We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
1answer
5k views

How to uninstall Perl version 5.10.1 from Ubuntu 10.4 and install a single threaded version of Perl?

I have to uninstall Perl version 5.10.1 from Ubuntu 10.4 and install a single threaded version of Perl. What commands should I run on terminal to do this? Or, is there another way to uninstall the ...
1
vote
1answer
648 views

Apache can't load dbi module in mac os x

I installed dbd:mysql via cpan. I have the following simple script: #!/usr/bin/perl -U use DBI; $ds = 'DBI:mysql:project:localhost'; $user = 'root'; $password = '123456'; $db = DBI->connect($ds, $...
3
votes
2answers
838 views

How can uptime be used to trigger an action?

I want to write shell or perl code which would give me notification after x days. Basically on SUSE Linux server, there is reboot required after 208 days, else the system would freeze. This is known ...
3
votes
2answers
7k views

Need to configure perl

I was going to run a perl program and then I got this error message: Can't locate JSON.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/...
0
votes
0answers
192 views

How to reinstall Perl on OS X

I accidentally deleted the /System/Library/Perl/ folder. Now I am not be able to run any of my projects. How can I reinstall Perl on OS X?
3
votes
1answer
1k views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...