Perl Consulting
Professional Perl consulting — scripting, application maintenance, modernization, performance optimization, CPAN integration, and custom development on Linux and Unix platforms.
Get Perl HelpOur Perl Consulting Services
Zwiegnet offers deep Perl expertise for organizations relying on Perl for system administration, web applications, data processing, or legacy business logic. We work with both classic Perl 5 and modern practices, helping you maintain, extend, and modernize Perl codebases efficiently.
Our Perl services include:
- Script Development & Automation – Custom Perl scripts for system administration, log processing, data transformation, and cron-based tasks.
- Legacy Code Maintenance – Debugging, refactoring, and enhancement of existing Perl applications and CGI scripts.
- Modernization & Refactoring – Migration to modern Perl (Moose/Moo, Perl Critic, best practices), object-oriented design, and test coverage.
- Web Application Support – CGI, mod_perl, PSGI/Plack, Dancer2, Catalyst frameworks, and integration with Apache/NGINX.
- CPAN & Module Expertise – Selection, installation, and custom development of Perl modules for databases, networking, XML/JSON, and more.
- Performance Tuning – Profiling (Devel::NYTProf), optimization of regular expressions, memory usage, and algorithm efficiency.
- Database Integration – DBI/DBD for Oracle, PostgreSQL, MySQL, and complex query/report generation.
- Security Review & Hardening – Taint mode, input validation, secure coding practices, and vulnerability remediation.
- Migration Assistance – Porting Perl applications to newer servers, upgrading Perl versions, or gradual rewrite to Python/Go when needed.
- Troubleshooting & Break-Fix – Rapid diagnosis of runtime errors, module conflicts, encoding issues, and deployment problems.
Perl remains a powerful, battle-tested language for glue code, text processing, and rapid development — we help you leverage it effectively while planning for long-term maintainability.
Located between Madison and Milwaukee, Wisconsin since 2009 — direct access to seasoned Perl developers with decades of Unix/Linux experience.
Which perl, which @INC, which user
The bug is often not the script. It is which perl ran it. Cron has a short PATH and a different user, so #!/usr/bin/perl and /usr/local/bin/perl are different binaries with different @INC. A module you installed with cpan as yourself is not visible to the nightly job. perl -V under the same user that runs the job prints the @INC that matters.
use strict and use warnings are not optional on code you still edit. Taint mode (-T) is how a CGI or a mail filter stops treating a request parameter as a filename. DBI with placeholders stops the same class of bug in SQL. Concatenating a string into a query is the defect, even when the old script has done it for years. perl -c compiles.
A 4,000-line CGI that prints HTML from a heredoc is not a modernization project until someone names the behavior that must stay. Replacing it with a framework and losing the one report accounting uses is a failed migration. The parts that are really C, or that should become C, belong with the C work.
Questions
The script works from the shell and fails in cron. What differs?
The user, PATH, and environment. Cron does not source your shell rc, so perlbrew and local::lib are invisible and PERL5LIB is empty. Log which perl and which @INC the job sees. Then give the job that environment on purpose.
Is the system perl safe to upgrade in place?
The distro perl is a dependency of other packages. Replacing /usr/bin/perl with a perl you built will break those tools. Install a second perl for the application and leave the packaged one alone.