Advertisement

635 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: 176 - 200 of 2190
 
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...
Hi, I need to monitor recursively a directory for new created files. I am using the File:Monitor package. (http://search.cpan.org/~andya/File-Monitor-0.10/lib/File/Monitor.pm) which works...
I have a Perl Script which works when Basic Authentication is used but gives Http Error 401 after the IIS Authentication Method is changed to "Integrated Windows Authentication" on Windows 200...
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 urlencoded data (in a database). Retrieving the data is no problem. I wonder if there is an easy way to decode the data. I can write my own function (that is no problem) but it seems li...
I am writing a perl script which should report the space used by a database in a single excel sheet daily, mean to say that it should append the data in the same spreadsheet. So how do I devic...
I am using PRINTF to format some output.  I know it is possible to justify left and right: printf '%9s',   "test";   # prints "     test" printf '%-6s',  "test";   # prints "test     " ...
Hi, I want to write a function to manipulate the variable that's passed into it, but if it's an array or hash i want to do the change to each member.  is there an easy way to tell what type...
Hello, I need to make a script in perl that connects to Internet and download a certain gif (e.g. http://www.roliria.com.ar/img/logo.gif) Any ideas? It is possible?
What is the best way to sort on two columns in a .csv file? Here is an example: serverone, a1 serverone, cpu serverone, a2 servertwo, cpu servertwo, a2 servertwo, a1 etc.... What I...
Hi, My mail script based on Net::SMTP is failing when I try to send to multiple recipients. I know why it's failing--because the multiple recipient formatting is incorrect. But I don't know...
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...
my @array; @array = ('00','01','02','04','03'); my @array_stuff; $j = 0; $i = 0; for(my $count = 1; $count <= @array; $count++) {    if($array[$j] eq  '02')    {      $array_stuff[$...
How do I get the filename without the extension and replace that extension with a new extension?
I need to execute a program that is parallel to my script, but need full path to cwd.  I know how to execute it by hardcoding the cwd, but how do I get it at runtime?
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'm a tech writer and I need to document system properties we have in some XML-like config files for our application. There are too many files to do this manually, and I may have to do it agai...
%aList = ('car'=>300,'train'=>150,'truck'=>100,'bike'=>330); I need to write a program to sort this by the order of key and value respectively without using the sort functions provided by ...
Just want to know how getting current whole path to current directory, changed in my script with chdir for example...
Hi I need to delete lines from a file more than 80 characters long. also if 2 more more lines have first 30 characters matching, I need to keep just one. Any Perl comamnd line one liner /...
Hi all, Hopefully someone can help me out with this one. I have a perl script that runs rsh commands to monitor a remote server.  To minimize time and bandwidth I need to maximize the pr...
I have some perl scripts on 30 hosts. I want to execute these script from one host. I have tried to find some wmi code, that could do it, but without any luck. Are there anyone that can point ...
I have to compare two input dates format MM/DD/YYYY and calculate how many days are between both dates For example D1.  12/05/2007 D2.  12/04/2006 Difference is 366 days.   Is there any...
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 a perl script that I need to export a variable with.  This is what I have so far and it is not working:   export $ENV{'GEN_FIXDATE'}="@qry_result[0] 00000000"; @qry_result[0] just...