Tuesday 6 August 2019

Can't locate Foo.pm in @INC, install it using cpan and solve it in many methods?


Method1:
cpan File::Name

Method2:
in windows: 
ppm
ppm> search net-smtp
ppm> install Net-SMTP-Multipart

Method3:
sudo perl -MCPAN -e 'install Foo'

Method4:
start cpan in your shell:
# cpan
and type
install File::Name

Tuesday 10 January 2023

How to Upgrade CPAN in Latest versions using perl?

 


Method1:
 
perl -MCPAN -e "upgrade /(.\*)/"

Method2:
 
in cpan shell type "cpan upgrade /(.*)/"

Method3:
 
cpan-outdated -p | cpanm

Method4:
 
cpanm App::cpanoutdated

Labels: , , , ,

Tuesday 5 November 2019

perl - 5 ways cpan module installation


Method 1:(Manual Installation From cpan.org)

use wget  or manual search  from  metacpan.org
and get the package download path and use with wget or download manually.

Extract it as described below,

tar -xzvf XML-Simple-2.25.tar.gz
cd XML-Simple-2.25

perl Makefile.PL->make->make test ->make install


Read more »

Labels: , ,

Wednesday 10 August 2022

perl selenium automation complete tutorial with code examples

First, we need to install the Selenium WebDriver for Perl, which can be done using the CPAN command:

cpan Selenium::WebDriver

Once the installation is done, you can start writing the code. Here's an example of how to use Perl Selenium to navigate to a website and perform a search:

Read more »

Labels:

Wednesday 11 December 2019

What is PPM in Perl?

Perl Package Manager (PPM) is a Perl energy intended to simplify the duties of

1.locating,
2. installing,
3. upgrading
4.removing

the software packages.

Read more »

Labels:

Wednesday 8 April 2020

perl nagios tutorial

Nagios is a popular open-source monitoring system used to monitor hosts, services, and network devices. In Perl, you can use the Nagios::Plugin module to develop custom plugins to monitor various aspects of your system. Here's a basic tutorial on developing Nagios plugins in Perl:


1.Install Nagios::Plugin module: 

You can install the Nagios::Plugin module using the CPAN shell or your system's package manager.

2.Create a Perl script: 

Create a new Perl script and include the Nagios::Plugin module:

#!/usr/bin/perl

use Nagios::Plugin;

Read more »

Labels:

Wednesday 9 March 2022

perl Log::Log4perl Tutorial

Log::Log4perl is a powerful and flexible logging framework for Perl. It allows you to log messages to multiple output destinations with varying levels of detail and can be configured in many different ways to suit your specific needs. In this tutorial, we'll cover the basics of using Log::Log4perl and provide detailed code examples to help you get started.

Installation

To install Log::Log4perl, you can use cpanm, the Perl package manager. Simply open a terminal and run the following command:

cpanm Log::Log4perl

Read more »

Labels: