I need to write a script in Perl that uses SFTP and SSH, for transfering files between windows and unix OS. The ssh on the windows is Cygwin open ssh. I am currenlty working on buliding th...
Hi,
in my perl script i m using date command.
$prev_date has some value and then in one of the sub-routine, i use
$current_date = `date`;
how can i find the difference between 2 date...
I'm on a fc3 box with perl v5.8.5. I'm a newbie for Perl programming. I'd like to convert an ascii data file to binary data file using a Perl script. The data are Integer format and separat...
Hi im looking Perl ways to read client hardware ID using browser
whether it is MAC address or anything else.
Thanks in advance
e.g. I want to run "dir > temp" in the middle of perl script?
I am having trouble with a simple problem. How can I check/test if a value is in an array?
@attendees = ("kim","bob","jim","john");
$value = "john"
@numbers= (3,5,6,8);
$check_value...
I have 2 arrays. I want to remove all matching items in 1st array based on elements in 2nd array.
@a=(a,b,c,one,two,three,1,2,3);
@b=(b,one,3);
currently I have some ugly looping code.
I...
Hi Friends,
I spent all my night working on this code but it only works if I assign the values directly to the variables, but if I take the value from an html file using post method it return...
Hi people,
How can I delay processing of some statements in a program. Example:
print "hello1";
{
#delay this by 10 seconds
print "hello2";
}
So after printing hello1, hello2 sh...
I'm using the Perl module Spreadsheet::WriteExcel.
I want to subsitute a variable for the cell rows, instead of writing each line like I did below??
Any ideas??
$worksheet->write(1, 3, ...
I am looking for a perl script that can count the number of jpg files in a given directory. Can this be done? What does the script look like?
i have a zip file test.zip this zipped file contians plenty of zip file
how to unzip test.zip using perl
I am trying to install perl's DBD::mysql package with cpan > install DBD::mysql, after successfully installing mysql in an Ubuntu machine, but cpan barks complaining about "mysql_config", a fi...
Hi all this is my first question on this board.
I have a data log file which needs splitting.
the data file consists of the following data:
Fri Nov 30 16:52:25 2007 | <hostname> | <ip_addre...
I am installing swatch (module for use by Snort) and it requires several specific modules, like date, time formatting, etc. Using ActiveState Perl, I tried to prepare the code but the above e...
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...
This is the code to get a y/n but when I make a subsequent call it does not ask for the input !
#! /in/local/bin/perl
sub demande {
my $in=0;
system("echo \"Have u modified \"");
$in = ...
PERL , AIX machine, I wold like to run HEAD or TAIL commands within a perl script so I can get only the first line and only the last line of each file. I want to output them to a seperate ...
I am using WindowsNT perl 5.003_07.
I am have find folder name, filename and file size inside the path D:\graphics\xyz.
first find the first folder inside the folder XYZ and print the fo...
Hello coders,
I have an array of arrays called $list_of_templates. I can get the count of this array by doing @list_of_templates. Currently this array has two elements in it (both of whic...
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...
I am reading a file which potentially could have 100s of thousand records. I want to read this file as array and insert into a oracle tabe. Basically I want to do bulk insert with perl to achi...
It is much easier to use a system call to mv to move multiple files/directories, but I want to use the Perl module File::Copy to accomplish this. Basically, I need to move the contents of the...
I have a variable HV *myHash - which may be a simple Perl hash, an object or a tied variable. I want to make a copy of it (its variables) into a new variable myHash2, and destroy it afterwar...
I have a folder, abc. There are sub-folders (also sub folders to sub folders, etc) and files. I want to change all folders and files with names containing at least one upper case character.
...