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.

 
Top Perl Solutions: 1 - 25 of 317
 
Hi Experts, How do I get a text file into an array with three columns. The text is separated with tab and looks like: ID123   ref456   box789 ID124   ref456   box789 ID125   ref456   box78...
I have two files fileA and file B with following contents fileA: aaple tomato orange pear fileB: tomato cucumber radish mango I need a code that will compare the two files and p...
Hello coders, I have an array of arrays called $list_of_templates.  I can get the count of this array by doing @list_of_templates.  Currently this array has two elements in it (both of whic...
I have a folder, abc. There are sub-folders (also sub folders to sub folders, etc) and files. I want to change all folders and files with names containing at least one upper case character.   ...
I am reading a file which potentially could have 100s of thousand records. I want to read this file as array and insert into a oracle tabe. Basically I want to do bulk insert with perl to achi...
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...
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?...
Dear Experts - My control file will have the following string -- start file = hfossm.txt  : ms_hfossm.dat  : ms_hfossm.token  : ms_hfossm.dsc file = hfospsm.txt : ms_hfospsm.dat : ms_hfo...
Hi, In Perl, I know how to parse a file line by line, but how does one do a similiar operation with a string variable in a program. Lets assume I have a string like :-  "Name: Test   City...
Hi All I'm trying to calculate gross profit margin but it fails. CODE: $Price = "100.00"; $Finalprice =($Price / (100% - 40%)); print "$Finalprice";
I was able to run the perl script, but notice numerous Argument "wait"  isn't numeric in numeric gt <>> at contact.pl line 16. Now  pim.vol contains contacts, calendar, etc, so maybe the conta...
Hi all, I'm adapting a proxy script I got from:http://www.accordata.de/downloads/port-proxy/index.html This script can be used for port forwarding but is written for TCP connections only. ...
Hi experts I built a store locator -  www.howstorelocator.com for our company (using PHP).   Post variables (name=) are: state, zip, kountry, and (the submit button's name=) Submit Now I ...
my script runs on SUN SOLARIS, i want to catch a signal (like SIGKILL or something) when i kill it using "KILL PID" it means i want to write the dead time to LOG or do something useful before...
Has anyone ever got a perl module to install??? They don't seem to make sense and are contradicting to themseleves.  For example I need to install CPAN so i can do: perl -MCPAN -e shell i...
I have written perl program in which I want to check time elapsed between beginning and ending of STDIN input.For ex-If I input password from user , I need to calculate how many milliseconds u...
I have a linux (centos) server with multiple IPs on it to use as a proxies... i have an application that will connect to these proxies but I do not want to use a single proxy more than 3 times...
Would like to know of a method to prepend a line to a flat-file in Perl. Trick is, without using a temporary file, copy/rename, or storing the entire file in a variable. (Prepending byte...
Dear Experts - I've the following script, and I would like know the working directory (PWD) before its deleting the files. sub deleteRemoteFiles {   foreach $fname (keys %remoteFile)  ...
Hello, I am trying to get this PERL script to work so I can extraxt binary data from a file, here is where I found the script: http://www.eggheadcafe.com/software/aspnet/30208939/reading-p...
i need to just find find out that after i have collected data from filled form by user..how do i attach file chosen by user after browsing from his local hard drive and send everything to me i...
Hi experts In Perl/Tk I want to display an image. The code snippet is an exact copy from Perl/Tk FAQ. It works fine. But when I want to use my own image and use the absolute path, e.g. m...
What do I do to get list of files that have tabs? How to do substitute the tabs with spaces? Is there a way to do that in a perl script that traverse the directory structure and replace tabs ...
Hi, Given the input listed below (two entries from a text file called "input.txt" that contains 130 such entries), I would like to use perl to create an output file called "output.txt" with...
I have a 2 part question. 1. I want to replace & in a string with &amp;  which is easy enough $str=~s/\&/\&amp;/g; but the string may or may not already contain the characters &#39; (or &#w...