Advertisement

250 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Perl Solutions: 101 - 125 of 977
 
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 = ?")...
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 Time Difference in Days:Hours:Minutes:Seconds format.  I would like to get how long a function and the whole script took to run.
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...
when i do $temp = `grep ooo file.txt` i print $temp; /v/apache/conf/vhost.web1:       include conf/oos_test.conf /v/apache/conf/vhost.web1:       include conf/oos_apps.conf /v/apache...
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...
Hi, I tried to perform perl inline edit to replace a string. The file I tried to modify is shared through NAS drive through different platforms (UNIX & WINDOWS). But, I can pretty much edi...
Hello I want a simple perl code example which will connect to an IP and port, sends a string packet like "Hello", then waits to receive 2 packets (without carriage return or line feed, I me...
I run a perl scripts and and got the following 256 return code.  Why?  How to get the description of the real problem?  Thanks. Load Data Status        = 256 2007Dec21093113 256
I need a easy way to compare two files, I have a small perl script that I works for this but doesn't work when the cases are different in the files, tried putting in to ignore the case but d...
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 ...
This is what I need to do: I have many files like this: c:\dir\pippo-red.html c:\dir\paperino-yellow.html c:\dir\pluto-red.html c:\dir\gastone-green.html I have a HTML2TXT.EXE progra...
Hi there I have a linux web server running a MySQL database and I want to set up a CRON job to copy the database to my FTP account on a daily basis. I need a PERL script to do the following...
I wrote the below code in ASP but found out the web server is running FreeBSD.  Is there a way to turn on ASP in FreeBSD?  If not, how can I convert the below code into Perl which runs in Free...
I have a folder of .pdf files that are created everyday I need a script that will send an email with these files as attachments. C:\Documents and Settings\jMcgill\Desktop\Reports\TradeRe...
I have a perl file that I run as ./myscript.pl somefile.txt which parses out some values from a text file that looks like [1] # join request # [4] other stuff [3] # join successful # ...
I need to convert: http://basskozz.com/Convert.txt to the following format: http://basskozz.com/Converted.txt Can someone help me with a quick little Perl Script to do this conversion? ...
I have written a piece of bespoke booking software in Perl on the Xampp implementation of Apache and I've encountered a problem running .EXE files. My software ties in to the popular (in th...
I'm using LWP::UserAgent to scrape data from a site. to hide my IP i used proxy that i found from web as they let ppl use as free. but it is not working. pls guide me what is the write way to ...
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...
Hi, here is the situation when a user logs in, 1-if it is succesfull the cgi, creates and sends a cookie with the username as the value, 2-then after sending the cookie, it creates a se...
Experts, I am trying to switch the tabs in excel spreadsheet ( windows side) and rename the same file. when  i the run the following code i get the error as "OLE exception from "Microsoft o...
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...
Hi, I was gonna play around and fix the bug but I need to process two batches of  data for my client by tomorrow and I am not yet efficient to write this up in short time. I got some help ...
Hi, I need to execute a perl script from a c program. so I presume I have to use System call. I need to pass 2 arguments to the perl script. Arg1: filename Arg2: string The script should...