Category: Perl
-
How-to: Connect and Query Oracle Database using Perl.
Connecting to an Oracle Database is more of an advanced usage of perl and is not usually needed for every script. However when you start to develop interactive web applications with perl having a backend database is fundamental. This guide will teach you how to Connect and Query Oracle Database using Perl. In this example…
-
How-to: Create a simple Perl HTTP server
I came across a situation where I needed to test access through a complex network of firewalls, nat’s and ACL’s to a server that was to be setup. Problem was the server was not ready yet, it was up but the application was yet to be installed. The application when installed listened on port 4321…
-
How-to: base64 Encode a string using perl.
One way of obfuscating a string is to base64 encode that string. This is not encryption, but there is nothing that stops you from base64 encoding an already encrypted string to obfuscate it even more. Perl makes base64 encoding really easy. Here is a simple one liner that will base64 encode a string. Additionally we…
-
Hello World (Perl Script)
You have to start somewhere. If your just starting out no matter what the language your probably going to start with a very basic program and then learn from there. We call this a “Hello World” Script. here is an example of a hello world script in written in Perl. First create a new file…