Hi,
I have a Perl script that runs in Microsoft IIS server as a CGI script, and does the following:
1) Reads stuff from the database,
2) Creates a plain text file to describe some data...
Given two dates like the following
Feb-14-07 18:20:11
Mar-03-07 20:32:19
how can I calculate the number of days (with decimals!) between the first an
d the second?
Hi,
There's a nice perl module which I really want to use:
PDF::Reuse
You create a PDF in the following manner (According to the instructions)
prFile(FILENAME)
...lines of cod...
I'm trying to write a script that will process all the folders in a partciular directory: dir1. Problem is my script will not change directory into dir1.
I run the script from directory: ...
hi..
i have this perl code that create csv files as well as text files.
however, my csv fils could only print 1 output instead of 2.
how can i modify the below code to include the
fore...
Well here is my code....
use Cisco::CopyConfig;
$config = Cisco::CopyConfig->new(Host => 'switchhostname', Comm => 'snmpRWstring');
print $config->error();
$config->copy('xxx.xxx.xxx...
I need a perl script that will open an existing file delete the first line and then write them back out.
i have aray
@test = ("java", "visual", "pascal", "cobol");
how do i find if the the element visual exists in array or not.
i know to do thru for loop, but do we have any function for ar...
Hi,
I am trying to parse and XML file from weather.com. The file they send is pretty complicated so I wanted to first try a simpler file -- I tried the example given in the docs for XML::Sim...
I am using Perl 5.003_7 and windowNT. I want to zip all .dat file from a folder. How do I zip that files. help me.
Hello All;
As you can tell by the title, I am have a really bad couple of days trying to figure this one out.
Just to get the balling rolling here.
This error accures when the script ...
hi, i have this code and i would like to know why do we need to use shift ? I hope someone can explain it to me thanks
#!/usr/bin/perl -w
use strict;
print "Enter Filename:";
my $filenam...
Hi
I look for a code that is able to determine whether the form input value is
1) a positive number (with only digits) or is a string
2) (independent to above)
a function that deter...
I need to be able to calculate all possible number combinations within any given number and alphanumeric set.
It would be nice to be able to generate files filled with all possible number...
I have very big formatted result set and I want to store all that in a 2D array in my perl script. In the end I want to print just the array. Are there 2D arrays in perl ? How do I use a 2D ar...
I have a bunch of file with spaces on their names
VER -18-11H.Reserved Drawing Number - No Version.dgn
and
VER-05-07.Reserved Drawing Number - No Version.dgn
I need to either remov...
Hello All,
I'm trying to figure out how to issue a snmpwalk command through perl. I have never done anything with snmp and programming before.
Attach is the system command that I use.
...
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
_________________...
Hello experts. I need a timeout for the following code.
I'm looking for a perl script that will extract domain names from html files AND a detail explanation on how the expression works.
Attached is the code that I've come up with. I'm trying t...
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 ...
I'm sure it's simple, but I can't think of the best/shortest way of deleting the a newline (line feed) if it exists on the very last line of a file.
So in the instance of:
$ od -c file
...
I have a perl script that uses SCP to move a file between 2 machines. I can use either Net::SCP or system("scp...") to copy the file -- no problems there.
Now I want to invoke this script ...
I have the following perl called test3. When run, I got the following error about EOF. Please help. Thanks!
Can't find string terminator "EOF" anywhere before EOF at ./test3 line 5.
...
Hi all,
How do I remove double quotes from a string?
Example: I have a string "apple" in a list and I want to replace it with apple but not try to remove the leading and trailing " becaus...