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.
...
I'm trying to run a script I wrote on a Linux Box on an AIX machine but it seems to error our, it works flawlessly on Linux and the syntaxt looks fine but when I run it on the aix box I get:
...
How can I use perl to see whether or not a remote file exists or not?
I need to check to see if a file is available on a unc path \\host\file1 and handle the exception if it is not accessib...
Hello,
I want to create separate gunzip files for every year from the all available files in the directory.
File extension starts with YYYYMMDD.tsv. Can anyone please help create te comman...
I am taking a date parameter on command line how do I validate correct format of the date in perl and need to pass it to oracle procedure. Currently I pass procedure the date as VARCAHR2 but I...
I need to parse a txt file and get paragraphs of text into variables.
e.g.
Title: asdas asdas das dasd
asdasdas asdasdas asdasdsa
asdsada asdasdas asdasdasd
Lic: AJHSJD76767a6
A...
I need to create an array which will have 5 "columns" but an unknown number of "rows" that could change each time the script is run.
Is there any way to create a dynamic structure like this...
This should be so simple but is causing a few probs.
I can quite happily issue a sql statement and populate an array from within perl. I can even return a single element array item from one...
Hi,
When you're using the following syntax to iterate a 2D array:
for ($it (@my2dArray)) {
for ($j = 0; $j < @$it; $j++) {
}
}
I'm assuming that:
...
my $Book = $Excel->Workbooks->Open($abs_path) || die "Error: File can not be opened $gFile \n";
Can't call method "Open" on an undefined value for the above line
I printed the $abs_path and...
I'm on a FC3 box with DBD-ODBC-1.16, DBI-1.605, unixODBC-2.2.9-1 , freetds-0.82 and perl 5.8.5. I'm struggling on connect Perl on Linux to Microsoft SQL Server 2000. I can successfully acces...
Hello.
I processed a lot of data in Perl, and now I need to sort it.
My data is in a text file called data.txt:
NLLHETDSA 981.03
TQIPHLAGT 919.04
ETDSAVATA 845.86
LCA...
Hello:
I have read http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20102970.html but I am receiving an error that the file size is too large.
The error message is: cou...
Hello
I am trying to access the sql server 2005 from the solaris operating system. below is the code which i am using.....
while connecting to the server i am getting following error
D...
I can't seem to get the write_url_range() function from Spreadsheet::WriteExcel (v. 2.20) to operate as expected:
#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcel;
my $workbo...
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...
What's the most efficient (fast) way to eliminate duplicate lines in a text file in Perl (Windows - commandline)?
In perl, I need to read a folder and write to a file a listing of the files within a certain date/time period. For example, if I run the perl at 2am, I want it to pick up all the files from t...
I hava a csv file on my debian machine, now I want to convert this csv file in to xls using the perl script.
I'm trying to write a program that can send and receive files from a server using a socket connection. I tested this code out with only the file transfer and it works fine, however once I star...
I have many html files named like these:
c:\dir\femo-black.html
c:\dir\loren-white.html
c:\dir\spark-white.html
c:\dir\kim-black.html
c:\dir\paul-white.html
How can I convert only th...
@chars = split(//, $word);
@words = split(/ /, $sentence);
@sentences = split(/\./, $paragraph);
I think I understand that chars split on '//" (empty string?) and words split on "/ /"(one...
I'd like to calculate the difference between two times from the following time format
("%Y-%m-%d %H:%M:%S")
This is the date time stamp from my database concerning the arrival of the las...
I have to troubleshoot a issue and need to modify a perl script to append the output of a command within the perl script to a log file rather than overwrite it. Here is the line I need to cha...
Hi,
I have been trying to use Perl to grab the following webpages. I have Over ONE THOUSAND similar URLs to save, so I hope there will be an automatic way to do the job.
http://cgi.eba...