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

0
votes
0answers
22 views

What is a good language to do both CSV read/write and XMLHTTP requests? [closed]

I'm looking for a language to use that has good libraries for reading and writing a CSV and for performing XMLHTTP requests. Right now, I'm looking at Python and Perl as my top choices. I know PHP ...
0
votes
0answers
6 views

How to determine the newly closed file within a continuous audit log rotation? [migrated]

I am attempting to find the best way to determine when the second file (of a matching criteria) is created. The context is an audit log rotation. Given a directory where audit logs are created every ...
0
votes
0answers
23 views

Inserting a hyphen when string changes from alpha to numeric [migrated]

Given a random alphanumeric string (A-Z0-9) between 1 to 10 characters long, I'd like to insert a hyphen when it changes from alpha to numeric, or numeric to alpha. I have something that works now, ...
0
votes
0answers
8 views

PERL: Cant use variables in Sybase SQL Driver to MS SQL Server [migrated]

I'm trying to use a dynamically constructed query to get data from an ms sql server(2008) in perl. The sql-string looks like this: $sql = (q/SELECT COUNT(DISTINCT COLUMNa) FROM TABLEa WHERE COLUMNb ...
1
vote
2answers
103 views

Designs for outputting to a spreadsheet

I'm working on a project where we are tasked to gather and output various data to a spreadsheet. We are having tons of problems with the file that holds the code to write the spreadsheet. The cell ...
1
vote
0answers
114 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
1answer
46 views

Simple dependency handling for objects (perl)

I am a bit stuck with a design of a project, where many objects has to have access to the same piece of information. It could be some data, to construct a global-like object for themselves or the ...
2
votes
1answer
116 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 ...
0
votes
1answer
162 views

Why Perl is appropriate language for CGI? [closed]

I heard many people around still saying Perl is great language for CGI. But i think it is not as much as popular as now growing languages such as Python, Ruby. Is there any solid reason for Perl ...
-1
votes
1answer
129 views

Building a regex builder [closed]

I am a beginner in programming in general and web development in particular. I am especially bad at regular expressions. Recently I was involved in building a couple of cPanel plugins(Perl-CGI) and ...
1
vote
1answer
101 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 ...
0
votes
2answers
521 views

Languages implemented in Python?

AFAIK, Scala and Clojure are implemented in Java and Java is implemented in C. I suppose that many or most languages are implemented in C, for instance Perl, Python and SQL. I don't know much about ...
2
votes
1answer
230 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 ...
0
votes
2answers
618 views

Is Perl outdated for CGI and FCGI? [closed]

When we did web development in 1996 it was CGI, FCGI and Perl on the backend. Now why is Perl not that popular anymore and instead we use Java, Python, Go, PHP, C# and everything but Perl? To me it ...
3
votes
2answers
476 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
3answers
130 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 ...
8
votes
3answers
438 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 ...
1
vote
1answer
340 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 ...
9
votes
3answers
379 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 ...
4
votes
1answer
228 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 ...
2
votes
1answer
99 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 ...
4
votes
2answers
197 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 ...
8
votes
3answers
3k 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 ...
3
votes
3answers
149 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 ...
0
votes
2answers
388 views

Basic web architecture : Perl -> PHP

This is an architecture question. If there is a better forum, please redirect me. Apologies in advance. Essentially every website is built around a relational database, right? When a user uploads ...
2
votes
1answer
173 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 ...
0
votes
1answer
137 views

Converting data-structure in Perl [closed]

A function produces this hash of arrays: 'KEYNAME1' => ARRAY(0x1edeeb0) 0 'val11' 1 'val12' 2 'val13' 'KEYNAME2' => ARRAY(0x1efacb8) 0 'val21' 1 'val22' 2 'val23' ...
1
vote
2answers
402 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 ...
2
votes
1answer
881 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 ...
4
votes
3answers
5k 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 ...
7
votes
5answers
2k 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 ...
1
vote
2answers
147 views

Queuing RPC calls

I'm designing a system which listens to JSON RPC calls from clients, piles them up inside a list, and if the list gets full it will store them in a DB and keep receiving calls. My original plan is to ...
2
votes
1answer
231 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 ...
0
votes
1answer
245 views

Teaching programming (languages) in central/northern Europe [closed]

I hope this question is not going to be off-topic; in case you think there'd be a better place to ask it, please let me know. Anyway, I'm currently doing my PhD working in bioinformatics. I would, ...
3
votes
1answer
155 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 ...
12
votes
3answers
3k 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. ...
14
votes
12answers
4k 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?;" ...
10
votes
12answers
2k views

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

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 ...
11
votes
2answers
2k 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 ...
5
votes
5answers
790 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 ...
5
votes
1answer
504 views

S-Shaped Perl Program? [closed]

In his Why I Hate Django presentation, Cal Henderson brings up this awesome program in Perl which is a giant "S," which solves a Sudoku problem. Does anyone know where I could get access to this code? ...
8
votes
3answers
1k views

What does a company typically expect from a Perl developer?

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 ...
5
votes
6answers
655 views

PHP as a scripting language

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
797 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
1answer
117 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 ...
4
votes
3answers
556 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 ...
10
votes
2answers
2k 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 ...
3
votes
4answers
930 views

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

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 ...
15
votes
6answers
4k 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?
10
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 ...