0
A reference to valid parameters for cookie call in perl
Below is the valid paramaters that can be used when a cookie is being callied in perl script
-domain
a partial or complete domain name for which the cookie is valid. Like ‘mistonline.in’ for the entire domain (www.mistonline.in,php.mistonline.in,...
Determine the date using perl
This is one of the perfect method of displaying the respective server date using perl using sprintf and localtime, You have n number of methods to do that but here i am going for this method.
#!/usr/bin/perl
($day, $month, $year) = (localtime)[3,4,5];
$my_date...
Find the size of a file or text file using perl
Simple script for finding the size of a text file or any file you come accross using simple perl.Grab the script here and enjoy!!!!!!!!!
#!/usr/bin/perl -w
$filename = 'My_Test_File.txt';
$filesize = -s $filename;
print $filesize;
if ($filesize...
Simple Perl Module Script
This tutorial is just an introduction to perl module.Here you will find a very simple approach of module creation.
Each module contains a package declaration–usually as the first statement of the file–and this package declaration...
Embedding html in perl, how to do that?
Here i explain how to embed html in a perl script, this is very easy take a look at the script below.
#!/usr/local/bin/perl -wT
use CGI;
my $query = CGI->new();
my $ip_Addr = $query->remote_addr();
print < <"END";
<html>
<head><title>YOUR...
Randomly read and display values of an xml file using php
This script will show you how to read and display the values of an xml file using php. My demo.xml looks like this
<message><name>Antonio Paulo/name><website>http://mistonline.in</website><comment>Good One</comment><date>1305127910</date><user_ip>2.241.68.95</user_ip><user_agent>Mozilla/5.0...
How to find Operating System name using perl script
Just a very simple command to determine the operating system in which the script is running
#!/usr/bin/perl
print "The OS in which the script is runnin is:-\n";
print "$^O";
VN:F [1.9.13_1145]please wait...Rating: 0.0/10 (0 votes cast)VN:F...
Split /etc/passwd file using perl script
This tutorial will show you how to split the USERID and USERNAME using perl script.If you just have look at the passwd file you can see the lines are seperated with semicolon “:” and that is being used to split the file here.
#!/usr/bin/perl
$filename...
Ignore empty lines using perl
Today i will give you an idea here’s what you would need if you want to
skip blank lines or lines that have a ‘#’ at the start (or after
one or more white-space characters, i.e. spaces, tabs etc.):
while ( < $f> ) {
next if...
Reading input from keyboard and finding the sum using perl
This script will show how to read numbers from keyboard and find the sum.If some value is entered say 999 then it will exit the program.
#!/usr/bin/perl
print "Enter the number \n";
$userinput = <STDIN>;
chomp ($userinput);
print "User...
Simple User Input And Sleep Functionality Using Perl Script
This tutorial is a very simple script that will get the User Input And Clearly Explain How The Sleep Functionality is accomplihed using perl.
#!/usr/bin/perl
print "My First Perl Program \n";
print "#########################################";
print...
Set and get cookie using perl or cgi script
This script will show you how to set cookie and get the value of the cookie using perl script or cgi script
Here is our setcookie.cgi script
#!/bin/perl
use CGI;
$query = new CGI;
$cookie = $query->cookie(-name=>'managercheck',
...
How to get the query string value in perl cgi script
In this tutorial we will see how to get the query string value using very simple perl CGI script.
When we hit a URL from the web browser with a query string say
http://mistonline.in/cgi/data.cgi?program=php
In which program=php is the query...
