Hi,
I have a perl script which uses system call to call unix command
and want to print good if the return status is 0 and false if return code is not 0.
the korn script:
#!/bin/ksh
/...
In the Perl code below I'm removing carriage return characters, but I need to also remove blank lines.
#!/opt/perl/bin/perl
open(IN,"InputFile.txt") || die("Can't open file");
open(OUT,...
i am a total perl newbie but i have inherited a script to transpose a text file. For various reasons i have to use perl. The only thing is, i dont know how to feed it the script to be transpos...
Hi,
I am new to Perl and Linux
I am using Debian
I wanted to install module ReadKey so i used command
cpan Term::ReadKey
I am getting error message: /bin/sh: cc: command not found
...
Hi I have two text files with two indexed lists (one text string on each line, index is pipe delimited).
I would like to compare all the strings of the first file against all the strings in...
Hi,
I was gonna play around and fix the bug but I need to process two batches of data for my client by tomorrow and I am not yet efficient to write this up in short time.
I got some help ...
please tell me how to add date in perl.
sample : 01/01/2004+14 => 14/01/2004
Hi i cant get this perl program to work for me on the server i am on but as soon as i try it on one of the other servers i have access to it will work the error i have is
_________________...
Hi,
Can someone give me some decent instructions on how to install the PadWalker portion of Epic when using Eclipse?
I have found some examples, but there must be a simple set of steps s...
I have this type of data repeated over 100 times that I need to extract and write to a .csv file.
(Just the numbers not the headers)
CAUCPSCT
KEY (CELL_NUMBER)
...
I use the following regex to make every word in a string to make all words have first character uppercase.
$str="JB morGan & CO";
$str=uc($str);
$str=~ s/(\w+)/\u\L$1/g;
in this exampl...
I need translate a code from PERL to C or C++.
Where can I found a tool for help me the translation ?
I have just finished writing a script on my test machine making use of Perl 5's functionality and specifically, the GLOB function.
However, our production machine does not have Perl 5, but P...
How do I urlencode a string in Perl?
For example I wnat to pass another url as a parameter in the querystring so I need the urlencode version of this:
http://www.somewhere.net/hithere.cgi
Hi All,
This should be easy for you PERL folks.
I have some of the fields in my guestbook script that are mandatory and I'm seeing where whitespace is entered in those fields and it mak...
Hi,
My mail script based on Net::SMTP is failing when I try to send to multiple recipients. I know why it's failing--because the multiple recipient formatting is incorrect. But I don't know...
i have a zip file test.zip this zipped file contians plenty of zip file
how to unzip test.zip using perl
I'm trying to install a Perl module on my Leopard Mac and used 'cpan <module name>'. This downloaded and expanded the package OK, produced the Makefile but the 'make' stalled because it can't ...
Well here is my code....
use Cisco::CopyConfig;
$config = Cisco::CopyConfig->new(Host => 'switchhostname', Comm => 'snmpRWstring');
print $config->error();
$config->copy('xxx.xxx.xxx...
Can someone show me the most efficient way to replace non-ASCII characters with spaces in a string?
Thanks,
Kavoni.
This is the first script I have written (currently a UNIX Shell script still need to convert to Perl) and I have the script currently pulling the data needed and now based off the data (Online...
Our client needs a very basic CGI server that works with SOAP protocol, written in Perl. It should be able to do something like:
1.) receives XML input data
<xml>
<param1>something</param...
Hello, I need to make a script in perl that connects to Internet and download a certain gif (e.g. http://www.roliria.com.ar/img/logo.gif)
Any ideas? It is possible?
I am trying to port a huge amount of code to my laptop for testing. The live system and test systems are Perl 5.8.7 on IIS. Until an hour ago it was going well and I could read POST variable...
Hi,
I am new to perl. I am working on Debian/Linux
I have a perl file which calculates list of files has age more than 30 mins
And then it mails the list of the file
when I execute...