i am a total perl newbie but i have inherited a script to transpose a text file. For various reasons i have to use perl. The only thing is, i dont know how to feed it the script to be transpos...
I have a dbh->do(qq"INSERT .... |); statement, but it will error if a $string has quotes in it - is there any easy way around this?
I'm aware of dbh-quote but then all the output is encased...
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...
Excel outputs .csv file.
If the sheet cell contained a comma, the cell is quoted.
.csv output:
cellone,celltwo,"cell has, comma",cell four
If the sheet cell containes a quote, it's...
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...
I always forget how to solve this problem, though it happens whever I upgrade Perl. Somehow I've broken the CPAN module.
Any help fixing would be much apprecoiated. BTW, locate CPAN.pm at the...
Hi guys, hope u r all well.
Guys im trying to learn how to read command line arguments by using the GetOpt module, but each time i run the following examples, which im assuming "should" wor...
I am trying to get 3 batch files to run in parallel. I am using perl with system commands:
if (-e $Path . $batchs1 && -e $sPath . $batch2 && -e $Path . $batchs3 ){
system($Path . $batch...
I have a 24 Meg Log file that contain a significant number of system entries. I want to generate a file that contain only those entries that had the words "Cannot" or "No Entry" found in them....
Hi,
I am trying to gunzip a file in perl and it seems to not work. Below is the logic.......
$subFile = getInputFile( $jobNum );
$subFile = system("/usr/bin/gunzip $subFile");
...
Hail!
I tried many ways to delete a folder and all its content, but it always work with Telnet (command prompt) but never works on the internet...
I've tried:
@filelist = ("path/to/fi...
I have a perl script that creates a text file. I need to append the current date to the file name. Right now, I have a variable like this:
# csv path/filename
my $csvfile = "/home/mydire...
Hi,
I need to create a script that will take
perl inputfile_name outputfile_name string
If the inputfile has 5 lines and 3 lines contain the string then in the output file copy the ...
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 ...
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...
I need to write a script to execute command on the remote machine. I am logging into the remote machine without password.
I found on the goole that I need to install Net::SSH::Perl to ex...
I have a Perl CGI script and I have sub that I'm calling that takes a very long time to run. It takes so long that the web browser times out and the process dies before it finishes.
I need...
I have just finished writing a script on my test machine making use of Perl 5's functionality and specifically, the GLOB function.
However, our production machine does not have Perl 5, but P...
I use grep to check if a value is present in an array like this:
my $Hier = grep /$found_value/,@From;
Let's say @from contains "6,7,8,9,10"
and $found_value has the value 1.
$Hier sho...
In Perl object oriented programming, what does it mean when there is a method that begins with an uppercase letter and another method that is the same name that begins with a lowercase letter?...
Hi...
Im trying to set up IKONBOARD and Im confused about setting my file permissions. Im using ws_ftp to upload the files and it says to chmod to change the files permissions. Isnt this ...
Hi! I have some large xml files that I need to import in ms access. Using excel I'm getting some problems with special characters (&, ...).
Is there any clean way to transform an xml into c...
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 read in an email (source with header), and extract the sender's name, or his email address if the name is not available. For example, these are possible "From: " lines in email he...
I am having trouble parsing whitespace in a string. I am able to remove whitespace at the end and at the bgeinning of a string but I need to also perform replacement of whitespace with charact...