Category: perl (Page 2 of 4)

How to find IP address using Perl

Last updated on November 22nd, 2024 at 11:03 amA script designed to determine your IP address has been created. Two methods for locating the IP address are provided. This Perl script utilizes CGI to obtain and present the client’s IP address. 1] Using remote_addr() function 2] Using the environmental variable $ENV{REMOTE_ADDR} in perl. Let us […]

Perl script to copy files from one server to another

Last updated on March 1st, 2022 at 09:13 amTransferring or moving a file to a remote server using web user interface is really a great approach. Sometimes programmers want to develop scripts that will help them to transfer file from one system to another on a fly without logging in to a server. We are […]

How to generate random password using perl

Last updated on August 7th, 2022 at 07:07 pmTutorial on how to create random password using perl script. We are using rand() function available in perl.  Take a look at the script below. NOTE:- Make sure you modify the perl install location in the script header Since I don’t have a Perl environment setup I […]

How to connect to MySQL using Perl

Last updated on November 23rd, 2022 at 07:58 amThis tutorial covers some of the basic configuration and code required to connect to MySQL using Perl. We are going to display a table inside MySQL. In Linux Make sure that required modules are installed before running the script. Update these variables according to your configuration While […]

« Older posts Newer posts »