05-09-2008
Quote:
also I cant download modules from CPAN.
Is there any good reason why you should not download the modules from CPAN ?
Its not possible to write all the modules by ourselves, CPAN is there to use the modules that we need.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i have a script that coverts the file time in epoch time.but the problem is perl is not working inside the k-shell
----------------------------------------------------------------
#!/bin/ksh
echo "Enter the file"
read n
perl -e 'print ((stat("n")))'... (6 Replies)
Discussion started by: ali560045
6 Replies
2. Shell Programming and Scripting
if (($fields eq $hwp) && ($fields eq 'Y'))
{
$fields = "INTEGRAL";
}
elsif ($fields eq $hwp)
{
$fields = "INTEGRAL";
}
elsif ($fields ne $hwp)
{
$fields = "SEPARATE";
}
print "$fields $fields $fields\n";
Output:
The problem here is that the first... (2 Replies)
Discussion started by: kamitsin
2 Replies
3. Shell Programming and Scripting
Hi,
I'm writing one perl script to select only a number part from a line. These lines looks as:
raj born on 20080201 at delhi
result for the equation is (886005)
peter get married on 20031230
Maria born on 20080201 at paris
my output file should only contains the numbers, by removing... (1 Reply)
Discussion started by: Lokesha
1 Replies
4. Shell Programming and Scripting
A C G T -
A 5 -4 -4 -4 -5
C -4 5 -4 -4 -5
G -4 -4 5 -4 -5
T -4 -4 -4 5 -5
- -5 -5 -5 -5 0
So lets say I have a matrix which looks something like (above). Its basically a scoring matrix. the numbers are... (2 Replies)
Discussion started by: aj05
2 Replies
5. Programming
I am trying to run the following script which is a file format converter. The frame variable in the input file has a file of 3,2,1 which needs to be 0,1,2 respectively i.e. 3 =0 etc.
I have included the tr/// function into the script to do this, however it does not seem to be working
input its... (2 Replies)
Discussion started by: fordie
2 Replies
6. Shell Programming and Scripting
I got the below error when using the below code...it seem that perl interpret the "'" in the middle and therefore the pipe is not finished.
perl -wle '
@a=`who| perl -wlane 'print \$F;' | sort -u` ;
chomp @a ;
print @a;
'
the error message in cygwin is:-
perl: No match.
| sort... (12 Replies)
Discussion started by: ahmad.diab
12 Replies
7. Shell Programming and Scripting
hello, can anyone help me with this problem? im just a beginner and currently starting to program in perl, also i just installed openssh because what i really need is to ssh to a ubuntu server.
so I tried my code:
#!/usr/bin/perl
use strict;
use warnings;
use Net::OpenSHH;
my $ssh =... (4 Replies)
Discussion started by: samohung390
4 Replies
8. Shell Programming and Scripting
Hi, I have implement queue but it take last element instead of fist element
#!/usr/bin/perl -w
print "Enter page Access";
chomp ($item = <STDIN>);
my @queue = split /\s+/, $item;
print "Enter a page frame";
$frame = <STDIN>;
if ( $frame >= 3 )
{
$fifo = pop @queue;
print... (1 Reply)
Discussion started by: guidely
1 Replies
9. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
10. Shell Programming and Scripting
Hello All,
I am trying to use perl eval in a complex code and below given is a pseudo code of my logic.
Here $result evalutes to empty.
Please help.How should I retrieve of $t where $f just hold the name of varaible i.e t
$t=10;
$f='$t';
$result=eval "\$$f";
print "$result\n"; (3 Replies)
Discussion started by: prasperl
3 Replies
LEARN ABOUT DEBIAN
inc::module::install
inc::Module::Install(3pm) User Contributed Perl Documentation inc::Module::Install(3pm)
NAME
inc::Module::Install - Module::Install configuration system
SYNOPSIS
use inc::Module::Install;
DESCRIPTION
This module first checks whether the inc/.author directory exists, and removes the whole inc/ directory if it does, so the module author
always get a fresh inc every time they run Makefile.PL. Next, it unshifts "inc" into @INC, then loads Module::Install from there.
Below is an explanation of the reason for using a loader module:
The original implementation of CPAN::MakeMaker introduces subtle problems for distributions ending with "CPAN" (e.g. CPAN.pm,
WAIT::Format::CPAN), because its placement in ./CPAN/ duplicates the real libraries that will get installed; also, the directory name
./CPAN/ may confuse users.
On the other hand, putting included, for-build-time-only libraries in ./inc/ is a normal practice, and there is little chance that a CPAN
distribution will be called "Something::inc", so it's much safer to use.
Also, it allows for other helper modules like Module::AutoInstall to reside also in inc/, and to make use of them.
AUTHORS
Audrey Tang <autrijus@autrijus.org>
COPYRIGHT
Copyright 2003, 2004 Audrey Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.14.2 2012-03-01 inc::Module::Install(3pm)