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:
...
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...
What's the most efficient (fast) way to eliminate duplicate lines in a text file in Perl (Windows - commandline)?
Hello,
Can anyone please help explain how to use sftp in perl without using NET::SFTP. I think it will be possible just by using binary commands in program. For eg. using
sft username\@ho...
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...
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...
Hello,
I wish to execute a c programm form a perl script.
say like this::I think did something wrong in the system function syntax.Please correct me.
$result = system("gcc file.cpp");
...
@chars = split(//, $word);
@words = split(/ /, $sentence);
@sentences = split(/\./, $paragraph);
I think I understand that chars split on '//" (empty string?) and words split on "/ /"(one...
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...
Hi,
I have a shopping cart script where I want to separate the data manipulation and the data display functions.
I want one script to do all of the database inserts etc. and then call anot...
I'm trying to run the following command over multiple files in a directory (the syntax below works for individual files). The command replaces all the LF in the files with CRLF. I want to pl...
How do you get the process id for backtick spawn? Or is there a way to do this?
#For example:
#spawn via backtick
$stdout = `cmd.exe`;
#now how do I get the process id for cmd.exe?
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...
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...
Hello Experts,
I am looking for some tips and possibly examples in creating a perl or a shell script that would
run off my cygwin env to analyze csv files and replace for ex: the column 5 w...
Hi,
I am new to Perl and have been assigned a task at work which involves outputting groups of data from an Oracle Database to a web page (as multiple HTML tables). That i have managed OK. ...
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...
hello.
my brain appears to have siezed.
I am working on a simple perl page, output using HTML :: Template.
as i cycle through some records i am picking up matches and recording them i...
This code is a result from earlier question:
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23233585.html
There's a problem - script is initiating 2 of the batch jo...
Dear Experts -
file names
------------
hfospsm.5809.txt
HFOSPSM_1939.TXT
HFOSPSM_319001.TXT
hfospsm_38D5.txt
hfossm.5809.txt
HFOSSM_1939.TXT
HFOSSM_319001.TXT
hfossm_38D5.txt
...
HI There,
I need to solve the below question.Please help ********question starts here below*********
Create a generic program to count following, in any ".cpp" or ".h" file:
a. Total no. of...
What perl regular expression can I use to match double letters(or any double characters)?
This is what I've tried:
I need a Perl script to do the following...
1. I have a collection of 10000+ files located under a multi-tier directory tree located under DirA . I would like to run a Perl script from a...
Hi! I need to replace some text in all the files (txt) in a given folder,
the string i need to replace are
<citation valid="true">
and
<citation valid="false">
I need to replace...
Hi,
I'm trying to figure out this perl syntax for passing a function 'pointer'.
sub test (&@)
{
my ($function, @data) = @_;
}
so do the two egyptian hieroglyp...