Questions tagged [perl]
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 users and developers.
69 questions
-2
votes
1
answer
112
views
Choosing between perl and python for my application [closed]
I am working for a small electronics company and I was assigned a task of re-inventing and re-writing the software for our product delivery flow, which gathers design components, verifies them, and ...
0
votes
0
answers
66
views
Packaging for distribution: include CI config and other files the end user doesn't need in the package?
(Disclaimers: I have checked on Google and this site. I have read this answer, which is the only related one I could find here. Additionally, that answer is from 2017, and I wonder if things have ...
0
votes
1
answer
392
views
Pcregrep vs Perl vs Python for bash scripting when needing advanced regex features [closed]
I've lately been using pcregrep to do Perl-style group matching when doing my bash scripts.
The problem with pcregrep is that it's not readily available on Linux machines in general.
An alternative ...
18
votes
7
answers
4k
views
When should I use Perl's DBIx::Class?
DBIx::Class is a popular Perl interface to any database that you can connect to through DBI. There is good documentation for its technical details, but scant information about its proper use (...
0
votes
1
answer
204
views
How can I handle errors in functions [closed]
I'm programming a web app using Perl and Dancer. The logic is not trivial and I want to separate the web page logic (inside Dancer routes) from the business logic that reads and writes from the ...
8
votes
2
answers
375
views
Is the Perl default variable like an FP monad?
I have been getting my head around monads in functional programming and seem to see some commonality between Perl's default variable $_ and FP monads.
Is this true? Are there similarities, if not ...
1
vote
2
answers
2k
views
Incrementing Strings in PHP (and Perl)
PHP allows you to increment strings. Why?
Let's jump ahead a bit. Take the following code:
$string = '9ZzZ';
echo ++$string; // 10AaA
From a purist point of view this may seem like nonsense, however,...
44
votes
2
answers
53k
views
PHP: when to use arrays, and when to use objects for mostly-data-storing code constructs?
PHP is a mixed paradigm language, allowing to use and return non-object data types, such as arrays. I pose a question to try to clarify some guidelines for selection of arrays vs objects when deciding ...
1
vote
2
answers
133
views
Should you ever mix scalar and list contexts anyway?
I have decided to learn Perl as my next language and I am currently reading about the scalar and list contexts, although this question is not specifically Perl-related, I will just put it in a Perl ...
1
vote
3
answers
2k
views
Is Perl used for web development? [closed]
I am a web developer. I have been using php for many years and I also know lots of other programming languages so I wanted to try making websites using them.
I know Perl and want to make a website ...
3
votes
1
answer
167
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 C ...
14
votes
5
answers
19k
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 your ...
2
votes
1
answer
165
views
How can I run a script/subroutine on a Web Server and have that subroutine remain private (eg. Key Generator)?
My Problem: I have been tasked with re-implementing a software key generator routine on an external web server running cPanel v.11.44.1.18. Currently, the key generator is implemented using a ...
0
votes
1
answer
593
views
In MVC, why can't a model create a view?
I have a web application written in Perl with a controller, some "views" and some "Models". Each "Model" is corresponding to one "View". The controller (one file) creates an Model object ...
1
vote
4
answers
349
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 ...