Tech/Languages/Perl

From lathama
Jump to navigation Jump to search

Example

Hello World is a great place to start with a helloworld.pl


#!/usr/bin/env perl
print "Hello World";

then just execute

perl helloworld.pl
Hello World

There are also many options like inline but I chose file based for the basics.

Risks

Perl is a great language but had issues with package management and versions in the past. I once saved an online computer component retailer who had upgraded their credit card system on Microsoft Windows NT that talked to a Solaris web-server by downgrading the Perl version on Microsoft Windows NT. The packaged version of Perl on Solaris and the packaged version of Perl on Microsoft Windows NT did not match the actual interrupter installed. This could have been avoided.

Resources