Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

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

 
Time Tested Perl Solutions: 51 - 75 of 2190
 
Hi,    I have a perl script which uses system call to call unix command and want to print good if the return status is 0 and false if return code is not 0. the korn script: #!/bin/ksh /...
I'm using the following Perl script to create a spreadsheet from a text file. Basically the script works, but it's inserting a little square(carriage return character) as part of the $ACTIVITY...
How to run Perl script on Windows XP?
Using samba I mounted a UNIX folder into windows folder. Now I am trying to get a perl script that copied files from C:\ to this mounted drive which is called - S: Following is the script ...
i write a perl code as a web service client using SOAP::Lite, it works fine in most cases. When the server throw out the messege: "There is an error in XML document (1, 431)" and the inner e...
I've got the following script: #!/usr/bin/perl         my @a = ();         while ($line = <>) {         while (@a) {         pop @a;         }         chomp $line;         while ($line...
I am writing a client that will connect over the network to a server. The server will send (upon connect) multiple bytes of binary data, I need the client to log all these bytes of data send...
I am attempting to scan through large log files and get a count of the various error responses. To do this I need to see if the current response is already in my 2D array (as the first elem...
Hi Experts, I've a perl script that calls a shell script. I need to query the shell script's return code to determine if an error alert needs to be sent or if the job is ok. Exit code 0 & 1...
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 ...
Need some help... I've created a variable, $StdFolder, which points to a directory that I want to use as the standard for all new projects. $StdFolder = 't:/projects/standard/'; I want to ...
I would like to a write a simple perl script to login to Oracle sqlplus, execute certain commands and exit. I am new to Perl .. Can any one suggest easier way to do that.. $login = 'sqlpl...
please tell me how to add date in perl. sample : 01/01/2004+14 => 14/01/2004
Hi. I converted my perl script to EXE usng perl2exe. Now when I double click on my exe it runs great. I am also printing error messages in that. But as soon as the execution gets over , the w...
I have a string that contains a time, e.g. "18:23:32"   I would like to compare it to the current time to make sure that this time is keeping current.  I am quite new to perl and I have no ide...
Hi, i have a tab delimited input file that looks like this: Query      Score      E-Value      Position At1g01010       775      0.0      4705 At1g01010       775      0.0      4765 At1g01...
Hi I'm using an oracle db and i prepare and execute a statement that may return any number of rows. ... prepare_statement_differences(); $differences_sql -> execute; while(@differences ...
Dear colleagues, I am running ActivePerl v5.10 on Windows XP Pro. I have been trying to connect to MySQL v5 with no success.  I have been getting the following error: ----------- perl d...
is it possible to delete line of a file in perl without opening and closing a file i mean i know to create a new file blah..... but that is a long way.... i want simple unix command to be ...
I have been using the following function in a script that has been working on Perl 5. sub logmsg  {    chomp(@_);    my $LogMessage = join ( " ", @_ );    my $wDate = `date +%Y%m%d-%H:%...
I wrote the following code using if else statements. If I change the above statements to switch cases will it be faster or will they be the same speed. If change to switch will make it fas...
Hi, I have a UTF-8 string which was read from an Internet site. I need to convert it to an ASNI string, so I could write it to my MSACCESS database. Thanks,
Hi World! Actually I have two questions, first one: I have a perl script that does a select from a DB2 database and stuffs the data in a variable like this: ---------------------------...
Can someone show me the most efficient way to replace non-ASCII characters with spaces in a string? Thanks, Kavoni.
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. ...