if(3pm) Perl Programmers Reference Guide if(3pm)NAME
if - "use" a Perl module if a condition holds
SYNOPSIS
use if CONDITION, MODULE => ARGUMENTS;
DESCRIPTION
The construct
use if CONDITION, MODULE => ARGUMENTS;
has no effect unless "CONDITION" is true. In this case the effect is the same as of
use MODULE ARGUMENTS;
Above "=>" provides necessary quoting of "MODULE". If not used (e.g., no ARGUMENTS to give), you'd better quote "MODULE" yourselves.
BUGS
The current implementation does not allow specification of the required version of the module.
AUTHOR
Ilya Zakharevich <mailto:ilyaz@cpan.org>.
perl v5.16.2 2012-10-11 if(3pm)
Check Out this Related Man Page
CPANP(1) Perl Programmers Reference Guide CPANP(1)NAME
cpanp - The CPANPLUS launcher
SYNOPSIS
cpanp
cpanp [-]a [ --[no-]option... ] author....PP cpanp [-]mfitulrcz [ --[no-]option... ] module....PP cpanp [-]d [ --[no-]option... ]
[ --fetchdir=... ] module....PP cpanp [-]xb [ --[no-]option... ]
cpanp [-]o [ --[no-]option... ] [ module... ]
DESCRIPTION
This script launches the CPANPLUS utility to perform various operations from the command line. If it's invoked without arguments, an
interactive shell is executed by default.
Optionally, it can take a single-letter switch and one or more argument, to perform the associated action on each arguments. A summary of
the available commands is listed below; "cpanp -h" provides a detailed list.
h # help information
v # version information
a AUTHOR ... # search by author(s)
m MODULE ... # search by module(s)
f MODULE ... # list all releases of a module
i MODULE ... # install module(s)
t MODULE ... # test module(s)
u MODULE ... # uninstall module(s)
d MODULE ... # download module(s)
l MODULE ... # display detailed information about module(s)
r MODULE ... # display README files of module(s)
c MODULE ... # check for module report(s) from cpan-testers
z MODULE ... # extract module(s) and open command prompt in it
x # reload CPAN indices
o [ MODULE ... ] # list installed module(s) that aren't up to date
b # write a bundle file for your configuration
Each command may be followed by one or more options. If preceded by "no", the corresponding option will be set to 0, otherwise it's set to
1.
Example: To skip a module's tests,
cpanp -i --skiptest MODULE ...
Valid options for most commands are "cpantest", "debug", "flush", "force", "prereqs", "storable", "verbose", "md5", "signature", and
"skiptest"; the 'd' command also accepts "fetchdir". Please consult CPANPLUS::Configure for an explanation to their meanings.
Example: To download a module's tarball to the current directory,
cpanp -d --fetchdir=. MODULE ...
perl v5.12.1 2010-07-01 CPANP(1)
Hi, There are two files in UNIX system with some lines are exactly the same, some lines are not.
I want to compare these two files.The 2 files (both the files have data in Column format )should be compared row wise and any difference in data for a particular row should lead to storage of data of... (32 Replies)
Hi, i would like to create a script that shuts down the system if the power fails, basicly the solaris box would load the script at startup.
Ping 192.168.1.100 every 20 secs
If cannot get responce 3 times in a row send init 0 to the system.
Simple but effective, as 192.168.100.1 wont be on... (39 Replies)
I made a script that can swap info on two lines using a combination of awk and sed, but was hoping to consolidate the script to make it run faster. If found this script, but can't seem to get it to work in a bash shell. I keep getting the error "Too many {'s". Any help here would be appreciated:... (38 Replies)
Hi
I am writng a script to spool some account nos information to .txt file but wants that information for each and every account no to be written in a different .txt file with account no as part of the file name of its associated file.
Thanks (32 Replies)
if the column1 and 2 in both files has same key (for example "a" and "a1") compare each first key value(a1 of a) of input2 (for example 1-4 or 65-69 not 70-100 or 44-40 etc) with all the values in input1.
if the range of first key value in input2 is outof range in input1 values named it as out... (54 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
#! /bin/ksh
rm -f ./xyz file --- this line is working
// Below any if stmt is not working.
if
then
echo " blah blah "
fi
or I replaced above if with
if
then
echo "dir exists"
fi
This is also not working.
I am new to KSH. So can someone help why if stmt is not... (31 Replies)
I have a file in unix with sample data as follows :
--------------------------------------------------------------
--------------------------------------------------------------
{30001002|XXparameter|Layout|$
I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Hello to all,
I would like to search sequences of bytes inside big binary file.
The bin file contains blocks of information, each block begins is estructured as follow:
1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33.
2- Next... (59 Replies)
I have a file with 100 lines. On 50 th line , from position 5 to rest of the data , I need to change the occurrence of A to B and Occurrence of M to N.
Input file :
Line1
Line2
Line3
--
--
12345ABCDEFM
---
--
Line 100
Output
Line1
Line2 (40 Replies)
Hi All,
I want to find the difference between two files, by checking only the headers (column names) and report if any new column is added in the latest file.
For Ex: If the file "declartion.txt has these columns
url;image;id;showcase_id;showcase_name
and the actual file "feed.txt" has... (34 Replies)
Hello,
I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)