I have created a script to download several zip files over 50 files. There are two problems that I am running into, first there are two folders in the directory were the files are. The folders...
Hi
Is there a regular expression equivalent to an "AND" search?
---------
Ex :
This is my string in a text file.
Another string in a text file.
---------
I would like to do a se...
I have a $variable received from a HTML textarea form. EG:
This
is
a
test
I want to remove the newlines (carrige return line feeds)from it, so that it looks like:
This is a test
I h...
unable to call perl script from html or from vbscript
<SCRIPT LANGUAGE="PerlScript">
sub FindEffort()
{
..
..
}
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
sub Effort
FindEffort()...
What is the best way to get $year, $month, $day from string 20071224 using perl?
We currently have a number of medium-sized web apps written in Perl (total ~10K loc). Our customer wishes to convert these apps to JSP/Java. App requirements, tech designs, test cases, etc. ...
I am trying to push a system call into an array in PERL. I need this "buffered" for later use in the program...
I know this works
push(@scc_buffer, "test");
print "@scc_buffer";
or
...
Dear experts,
I need a solution to work on a unix environment. To automate the saving of attachments off to a specific directory when a new email arrives.
These are the basic rules:
If the...
Hi all,
I need to remove the same string from the txt file using perl, how do I do it????
"aaa" already appear once, so it should rmove the duplicate line.
Pls some 1 help???
i have create a web site which require user login. I want to clear the session information after the user close the browser. could anyone check the code below for me what's wrong with it?
u...
Hi, I'm having a heck of a time importing a mysqldump file back into my database using Perl.
documentation and Google searches suggest this:
system "mysql -uUSER -pPASS DBNAME < source $p...
Hello,
I 'm trying to build a 2D array from witin my code. So I want to have an array @list that holds arrays @info.
first I declare my @list and my @info
While reading from a file, I read ...
I was wondering if there was a Perl script that can ping one of my servers to make sure that it is alive and send me a net message if the server goes out. I am on a windows environment and wo...
How to get the full path of a specific running process called OnEarth.exe in Windows 2000/Xp. This path will be used to open a definition file and get a database name.
The purpose is as follo...
I am looking for a perl 4 function similar to the basic chr$ fucntion. I want to convert a number to it's ascii equivalent character.
ie $char = something(number from 0-255)
if the right s...
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...
Hello, I have a list of 6000 mac address. I have downloaded the oui.txt file from IEEE of the vendors. I would like to run the 6000 mac address against the oui.txt. What would be th best way t...
How do I modify @INC array ?
I want to be able to use a module that is installed in a different location of perl (than the one that I normally use). So I was told to modify INC array.
...
I have a perl script on Windows that automates Sorensen Squeeze, an encoding program. It calls Squeeze via the command line, Squeeze encodes the file, quits, and the perl script continues.
...
Hi all,
I have a list of session ids with timestamps (using the Perl time function). I want the sessions to expire if they have lasted longer than two hours. So, I have a cron job that runs...
Hi
I am working create a connection to database using DBI module. but I am getting error "Can't locate DBI.pm in @INC..."
I am working on perl in CYGWIN. I think DBI modules are not instal...
I need to query a database and create an associative array of column names and their values from a particular row of a table
$get = $dbh->prepare("SELECT * from mytable where user_id = ?")...
Hi all,
I'm pretty much looking for two things in this particular example. I'm running a small script which will test if a socket is (22/tcp in this case) is non-responsive or if there is ...
I'm trying to run a perl script and when I try I get this error:
[root@tweeter ~]# ./ATMScript.pl
-bash: ./ATMScript.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
I d...
I try to log some debug info to a log file. Here is code. When I run , it didn't log STEPONE to the file test.log. Please help.