Perl is a portable general-purpose dynamic programming language. It is used in a diverse variety of domains: system management scripting, text processing, web content management, Biology calculations, and others. It has a rich library of free reusable modules - the CPAN and a vibrant community of ...

learn more… | top users | synonyms

122
votes
19answers
104k views

Is there any reason to use C++ instead of C, Perl, Python, etc.? [closed]

As a Linux (server side) developer, I don't know where and why should I use C++. When I'm going for performance, the first and last choice is C. When "performance" isn't the main issue, programming ...
70
votes
26answers
4k views

Should we hire someone who writes C in Perl?

One of my colleagues recently interviewed some candidates for a job and one said they had very good Perl experience. Since my colleague didn't know Perl, he asked me for a critique of some code ...
36
votes
16answers
27k views

Why such popularity with Python? [closed]

Other than being annoyed at whitespace as syntax, I'm not a hater, I just don't get the fascination with Python. I appreciate the poetry of Perl, and have programmed beautiful web services in bash ...
17
votes
8answers
2k views

Should a newcomer to Perl learn both Perl 5 and 6? [closed]

I have started playing around with Perl 5 lately, and it seems very interesting. I would like to spend some time learning it more in depth when I can. My question, since Perl 6 is slowly taking place ...
16
votes
12answers
6k views

How to write a command interpreter/parser?

Problem: Run commands in the form of a string. command example: /user/files/ list all; equivalent to: /user/files/ ls -la; another one: post tw fb "HOW DO YOU STOP THE TICKLE MONSTER?;" ...
14
votes
6answers
5k views

Why is Perl so heavily used in Bioinformatics? [closed]

What is it about Perl that makes it so useful in Bioinformatics ? Why isn't C++ or Matlab or Python the big language?
12
votes
10answers
2k views

Is dynamic language always interpreted?

Looking at most (if not all) dynamic languages [i.e Python, PHP, Perl and Ruby], they are all interpreted. Correct me if I'm wrong. Is there any example of dynamic language that goes through ...
12
votes
3answers
4k views

What are the similarities between Perl and Java?

I have my mind set that I'm learning Java as my second language (I am a Perl developer). But just from reading a little of the online tutorials, I really can't find any similarities between the two. ...
11
votes
2answers
3k views

Why is Perl's smart-match operator considered broken?

I've seen a number of comments across the web Perl's smart-match operator is broken. I know it originally was part of Perl 6, then was implemented in Perl 5.10 off of an old version of the spec, and ...
10
votes
2answers
3k views

Is it true that “Real programmers can write assembly code in any language.”?

Real programmers can write assembly code in any language. (Larry Wall). As far as I can make out, Mr. Larry Wall is trying to say that to a real programmer any language can have the same ...
9
votes
12answers
2k views

As a young developer, should I be worried about having to use “out-of-style” tech at work? [closed]

I'm a recent college graduate (last May!). While I was still in school, I wanted to make sure that I had a job before I graduated, and very early (probably too early) in my job search I settled on one ...
9
votes
5answers
3k views

Improving performance for grepping over a huge file

I have FILE_A which has over 300,000 lines and FILE_B which has over 30 million lines. I created a Bash script that greps each line in FILE_A over in FILE_B and writes the result of the grep to a new ...
9
votes
4answers
492 views

Is Non-Deterministic Resource-Management a Leaky Abstraction?

From what I can see, there are two pervasive forms of resource-management: deterministic destruction and explicit. Examples of the former would be C++ destructors and smart pointers or Perl's DESTROY ...
8
votes
3answers
511 views

Programming style in Perl

I work in Java so basically I use OOP paradigm during coding. I am about to start working in Perl and I was wondering what is the paradigm that Perl developers follow. In wiki it mentions that it ...
8
votes
3answers
1k views

What does a company typically expect from a Perl developer? [closed]

Are there any common expectations from perspective employers when they hire a Perl developer? For a student who likes Perl and Linux and would like to get a job as Perl developer, what would you ...
8
votes
3answers
936 views

How is the development of languages like Python and Perl funded? [closed]

The title pretty much gives you the gist of the question, but allow me elaborate a bit nevertheless. Apart from Google's involvement on Python, and Activestate's on Perl development (Strawberry AFAIK ...
8
votes
3answers
5k views

How does the GPL static vs. dynamic linking rule apply to interpreted languages?

In my understanding, the GPL prohibits static linking from non-GPL code to GPL code, but permits dynamic linking from non-GPL code to GPL code. So which is it when the code in question is not linked ...
7
votes
9answers
5k views

Is there any good reason for someone who knows Python to learn Perl? [closed]

Reading the answers to Python vs. Perl in ten years time here on SE, most people seem to say go with Python. I agree (sorry Perl fans ;-) ). I already know Python, and I think it is a very good ...
7
votes
1answer
2k views

Is C a regular language?

Are C or C++ regular languages? If not, under which category do we place the programming languages like C/C++, perl, Python?
7
votes
3answers
934 views

Why does the Perl community have such a bad reputation? [closed]

I'm still fairly new to programming. I spend most of my time in Ruby, and I'm discovering a certain fondness for playing with regular expressions. That being said, I'm considering taking a look at ...
7
votes
8answers
966 views

Beginning Perl? [closed]

What is the best book for beginning Perl? Where to learn Perl from the basics? I only know bash/Linux at an intermediate level. I would like to learn Perl because it has the same syntax on every ...
6
votes
6answers
1k views

What is an effective way to familiarize yourself with a new application in a new language (and still look productive at a new job)?

I started a new job working on an application I'm vaguely familar with, and it's in Perl! I come from a PHP and Java background, so while I understand the basics, there are lot of nuances in Perl that ...
6
votes
6answers
1k views

PHP as a scripting language [closed]

I have reasonable knowledge of PHP, Perl, and Bash. I use Perl for most text processing on my system (find, replace, filter output, etc). I use PHP for web development, allowing a user to view and ...
6
votes
6answers
5k views

What language to use for prototyping and creating quick scripts? [closed]

Right now, I use Python for my quick scripts and prototypes (e.g. algorithms, my pseudocode is very Python-like as well). The oher languages that I am familiar with include Java, C, x86 Assembly and ...
6
votes
1answer
121 views

What is an effective way to familiarize yourself with a new application in a new language? [duplicate]

Possible Duplicate: How do I pick up a new language quickly, given I know several others? I started a new job working on an application I'm vaguely familar with, and it's in PERL! I come ...
5
votes
7answers
453 views

Should a .NET, JavaScript and SQL Web App developer learn Perl?

I'm a front and backend .NET web developer (most solutions use MS SQL Server) and I won't be using any non-MS solutions for a while. Will Perl be useful for situations that require scripting in an MS ...
5
votes
5answers
994 views

increasing productivity - mastering a language vs. selecting efficient tools

I'm looking for advice from experienced developers on this question. In my work there's a need for a lot of one-off code. It's tempting to just dip into the right python/perl library calls to do ...
4
votes
4answers
1k views

What makes Python more used as an implementation language than the others?

Perl and Python are often compared to each other (let's not forget Ruby), and almost always those discussions will come to the conclusion pretty much anything you can do in one or the other. Without ...
4
votes
1answer
1k views

Which back-end web programming language to use [closed]

I have a project where I will be collaborating to build a fairly simple site with some database access. I will be doing the back-end work, and my colleague will be doing the web design. The problem is ...
4
votes
1answer
83 views

What is the origin of the phrase “extirpated as a potential munition”

I recently came across this statement in the Perl documentation: extirpated as a potential munition derived from the sentence: "Creates a digest string exactly like the crypt(3) function in the ...
4
votes
3answers
10k views

Scripting language for filling out web form

I have a job as an intern at a technology company, I was given the unfortunate job of performing some data entry into our web management system. The information entered into the web form is stored in ...
4
votes
3answers
615 views

Is it possible to deploy Perl or Python scripts in the same way as PHP scripts?

PHP's deployment model is uber simple: upload and run. This is especially ideal for web applications that are intended to be installed on shared hosting by end users (think: Wordpress). Compare this ...
4
votes
1answer
267 views

How to profile a Perl + FastCGi + StarRunner web program? [closed]

I've written an extension to RequestTracker for a client, but he says the performance isn't good enough. I'd like to do some profiling, but I'm not sure how to connect up a profiler (say NYTProf, for ...
3
votes
2answers
219 views

Is it better to use $filehandler or FILEHANDLER?

It seems like FILEHANDLER is more commonly used as a handler naming convention than $filehandler. But it can give a bareword error if one forgets to use *FILEHANDLER in some constructions. What are ...
3
votes
3answers
132 views

Perform operations in the entry-script, or create a class which just instantiates and calls methods?

I'm building a perl application which does the following operations: Copy a bunch of files (class fileFetcher ) Parse each file (class fileParser) Store some data from each file in a database (class ...
3
votes
3answers
158 views

conventions for friend methods in Perl

Perl doesn't support a friend relationship between objects, nor does it support private or protected methods. What is usually done for private methods is to prefix the name with an underscore. I ...
3
votes
2answers
769 views

C Equivalent of Perl Unpack & Pack

I have some perl code that uses pack and unpack to transform the data in a way that I don't understand. $unpacked_data = pack('b*', join('', unpack('(b7)*', $packed_data))) Where $packed_data = a ...
3
votes
1answer
172 views

What conventions or frameworks exist for MVVM in Perl?

We're using Catalyst to render lots of webforms in what will become a large application. I don't like the way all the form data is confusingly into a big hash in the Controller, before being passed to ...
2
votes
1answer
184 views

What is a “template” in Perl?

I can find all sorts of weird information about templates in Perl, but nothing about what they actually are. Are they generic types like in C++? Is it a class-like structure? Or maybe something ...
2
votes
4answers
1k views

Is Independent Java Development Worth it Compared to Objective-C? [closed]

First I would like to say that I'm not developer, but I love to code whenever I can. I mainly use Perl which is the language I use when doing System Administration. For different reasons (that I'm ...
2
votes
1answer
1k views

UML representation of specific factory pattern

I have to create an UML class diagram from the following example code (Perl). I don't think that the standard factory pattern match in my case or I don't understand it correctly. I don't have ...
2
votes
1answer
268 views

Alternative to Perl's POD Documentation in Other Languages?

Perl has this really cool documentation method that makes documenting really easy. It's called POD (Plain Old Documentation). Here is an example: =head1 NAME Example::Module - an example =head1 ...
2
votes
1answer
102 views

is it possible to monitor more than one stream simultanously?

E.g. - $stream1 is the STDOUT of a child process and $stream2 is the STDERR of the same child process - $stream1 is one child process and $stream2 is another child process Is there a possiblility in ...
2
votes
1answer
130 views

What design route should I take?

So I've taken on a project at work that I'm having a hard time attacking, and I'd love some feedback and suggestions. I work for an online retail store where we have an old, +7k-line script that we ...
2
votes
1answer
138 views

Discovering functionality from parallel class hierarchy

I have an abstract syntax tree which I want to compile down to different representations. I am now struggling to arrange the classes in a way that new representations can be added easily. The easiest ...
2
votes
1answer
370 views

Checking for cross-site scripting vulnerabilities in Perl web applications

I'm putting together some notes for a dev team on how to write secure Perl code - especially taking into account the current OWASP top 10 web application vulnerabilities. For cross-site scripting I've ...
2
votes
0answers
329 views

Explanation java/web (tomcat/coyote/JSP/Servlet etc..) in 'Perl-world' terms

Analyzed one web-server. for the http request i got: apache 2.2... what redirects to https, and for https got apache-coyote 1.1. and the server runs xwiki java app. Trying to understand how it is ...
1
vote
2answers
558 views

Arrow => in Perl

What does the => mean in Perl? my $CreateArray = [ objectClass => [ "top", "person", "organizationalPerson", "inetOrgPerson" ], cn => "Jane User", uid => "0000001", sn => "User", mail ...
1
vote
3answers
263 views

Should Perl scripts really have no extension?

I just began reading O'Reilly's Learning Perl, 6th Edition and was surprised when I came across this excerpt. #!/usr/bin/perl print "Hello, world!\n"; Let’s imagine that you’ve typed that into ...
1
vote
1answer
452 views

Task Scheduler shared hosting

I am using a shared host that which doesn't support CRON/TaskScheduler (it is a windows Godaddy server). I need to search on email server for new emails on each 1 hour, I have the script on PHP. Can ...