Questions over hash variable in perl

scmuser created the topic: questions over hash variable in perl Hi, Could you please explain following questions in details.. 1. Various way to define and initialize hash…

Read More

Regular expression perl question

rajeshkumar created the topic: Regular expression perl question I am just beginner in perl. Just want to do following task through regular expression. I have huge sql…

Read More

Useful info on Perl defined Function

rajeshkumar created the topic: Useful info on Perl defined Function Very good url for the following topis… How to use Perl defined function with scalars How to…

Read More

Difference between use and require in perl

rajeshkumar created the topic: Difference between use and require in perl || use Vs require in perl || What is the difference between use and require? Except…

Read More

Convert df -h output to html table

rajeshkumar created the topic: convert df -h output to html table Code shared on permonks by choroba. #!/usr/bin/perl use warnings; use strict; use Text::Table; use constant CAPACITY…

Read More

Using perl send an html email

rajeshkumar created the topic: using perl send an html email Using perl send an html email #!/usr/bin/perl -w use strict; use MIME::Lite; # SendTo email id my…

Read More

Send an HTML email using perl and sendmail

rajeshkumar created the topic: Send an HTML email using perl and sendmail Send an HTML email using perl and sendmail open(MAIL,”|/usr/sbin/sendmail -t”); ## Mail Header print MAIL…

Read More

Perl script to monitor disk space and send an email

rajeshkumar created the topic: Perl script to monitor disk space and send an email Perl script to monitor disk space and send an email Very good link…

Read More

Perl validation on hash key is defined or not

rajeshkumar created the topic: perl validation on hash key is defined or not Solutions Thanks Len for example program. our %SERVERS = ( “rajesh1” => {type =>…

Read More

Bareword “rajesh” not allowed while “strict subs” in use at

rajeshkumar created the topic: Bareword “rajesh” not allowed while “strict subs” in use at Error: Bareword “rajesh” not allowed while “strict subs” in use at final.pl Solution:…

Read More

Perl function to remove any element using value validation

rajeshkumar created the topic: perl function to remove any element using value validation perl function to remove any element using value validation Not Working – my @items…

Read More

Delete an element from array based on custom duplicate value

rajeshkumar created the topic: Delete an element from array based on custom duplicate value Hi, I am looking for some help in one scenario. Requirement: Through some…

Read More

Delete line from string using perl

rajeshkumar created the topic: Delete line from string using perl Questions: Delete line from string using perl Delete entry from array based on custom duplicate value. How…

Read More

Remove the duplicate data from array using perl

rajeshkumar created the topic: Remove the duplicate data from array using perl Remove the duplicate data from array using perl Method 1 ============================================ sub uniqueentr { return…

Read More

Foreach Vs for Vs while in perl

rajeshkumar created the topic: foreach Vs for Vs while in perl Definition 1: In the while loop, Perl reads a line of input, puts it into a…

Read More

Good Books on Perl

rajeshkumar created the topic: Good Books on Perl 1. Effective Perl Programming: Ways to Write Better, More Idiomatic Perl (2nd Edition) (Effective Software Development Series) Regards, Rajesh…

Read More

Setting Up Perl and CGI For Wamp Server WAMP(P)

rajeshkumar created the topic: Setting Up Perl and CGI For Wamp Server WAMP(P) chromicdesign.com/2009/05/setting-up-perl-for-wampp.html Test.pl/test.cgi #!C:\Perl64\bin\perl.exe # test.cgi by Bill Weinman [http://bw.org/] # Copyright 1995-2009 The BearHeart…

Read More

How to print two array with new line using a single print statement?

scmuser created the topic: How to print two array with new line using a single print statement? How to print two array with new line using a…

Read More

Perl Interview Questions and Answers

rajeshkumar created the topic: Perl Interview Questions and Answers What line of code is a valid hash literal? [first => ‘John’, last => ‘Smith’] {first => ‘John’,…

Read More

My Shell Script Usage Collection

sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find . -type f | wc –l Count…

Read More

How to read a .properties file through script

rajeshkumar created the topic: How to read a .properties file through script The easy way to do it is to note that a Java properties file has…

Read More

Shell script to run x times

rajeshkumar created the topic: shell script to run x times Problem: First i need to cd to this directory $SWDIR/util Second i need to run the following…

Read More

Whats the difference between running a shell scrip

scmuser created the topic: Whats the difference between running a shell scrip Whats the difference between running a shell script as ./script.sh and sh script.sh have a…

Read More

Perl commandline search and replace

rajeshkumar created the topic: Perl commandline search and replace Perl commandline search and replace The better option is using perl command line search and replace option. The…

Read More

Unix command to find memory usage

rajeshkumar created the topic: unix command to find memory usage Monitor processes continuously. Updates every 3 seconds by default. Displays useful information such as total memory, memory…

Read More

Shell script merge two list and remove duplicates

rajeshkumar created the topic: shell script merge two list and remove duplicates You want all the records from list_A supplemented by all the records from list_B for…

Read More

Shell script for recursive delete required.

rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d “$1” ] then echo “Usage $0 dirname” exit…

Read More

Find Application Instance Directory In Unix

scmuser created the topic: find application instance directory in unix How to find installed application directory in unix? rajeshkumar replied the topic: Re:find application instance directory in…

Read More

Shell Script to delete a folder that is more then

scmuser created the topic: Shell Script to delete a folder that is more then Shell Script to delete a folder that is more then 1 week old…

Read More

Shell Script Run in Background

rajeshkumar created the topic: shell script run in background I wanted to run a particular shell program in a background and it should not be dependent on…

Read More