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: 376 - 400 of 1245
 
hello, i have a perl script that send an email after a from submission. the email is received with plain text. i would like to apply html tags to the body of the email and i would li...
I am using the following code to send an email with an attachment (win2k - activestate perl), but I do not receive the email. Can somebody check to see if the code is correct. There is no erro...
Hi Experts,  I have a input file where the header of the file has columns as below. I_AUDITID(16),D_DATE(8),T_TIME(8),I_TSORDNUM(10),C_RECORDTYPE(4) I need to read from the input fil...
Experts, I'm having problem in FTP during the "cwd" command. Error msg i'm getting "The filename, directory name, or volume label syntax is incorrect" What actuallly i'n trying to do is...
my @aaa = </foo/*>; print $#aaa,"\n"; The above prints 147 on my computer because there are 147 files in /foo. my $bbb = '/foo/*'; my @aaa = <$bbb>; print $#aaa,"\n"; The above pri...
I am trying to use the curl command to get a file from an FTP location. I don't know the filename but I do know that there will only be one file at the location and that the filename will have...
I am having a problem with writing a module and then calling it with another file. My module code is: <code> package policy; sub checkPolicyPrice {     my $policyCode = shift;     my $d...
Hi,   I am looking to find out what is the closest point based on Latitude and Longitude.  For example, lets say i have a package at Location A, and I want to find out what carrier, pickup ...
I need to be able to place products in each table cell from left to right according to order in my flat file database. I'm trying to display 3 products per row with pictures and cart button al...
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...
i have a perl script located on a server i want to run/call that script from a link on a html page Is there way way to call a perl script and pass it not one, but two parameters from a link...
Hi experts, I have several files: name1_Apr.csv: 1.6, 1.05, 0.73, name2_May.csv: 2.7, 2.11, 0.88 name3_Jun.csv 1.4, 6.7, 0.2   :   : ----------------------------- How do I...
In perl, I need to read a folder and write to a file a listing of the files within a certain date/time period.  For example, if I run the perl at 2am, I want it to pick up all the files from t...
Short description: I need a regex that finds all strings that look like      "..." <clark.kent@mycompany.com> , and where ... does not include any of the words "clark", "kent" or "sup...
foreach ('a','b','T') {     print; } I'm learning Perl and I saw this code in an example. I don't understand how this prints. can someone explain. thanks
$dbh->do (qq{ INSERT INTO code SET code = ? } ,undef,$content); looking at this example code, why is undef used?
Hello, I'm very new to perl and am trying to write a script which will do the following: Read a file and copy a specific section to a new file. Basically i would like to go trhough a fil...
I have some html files that have at some point a table, delimited in the code with <tbody>.....</tbody> I would like to extract the values in each column and each row. The rows are delim...
I'm new to both Perl and regular expressions.  I have a messy data file that I need to "neaten".  I've been given a simple Perl script that accomplishes the task and need to translate this scr...
Hi experts, I just need a small script to rename all the files in a dir from files.txt.bak to files.txt could you help me thanks
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     " ...
New to Perl I need to copy tif files from 1 directory to another directory using a txt file as input.  Txt file contains either a file or directory, one per line (files have a + as first cha...
What perl regular expression can I use to match double letters(or any double characters)? This is what I've tried:
Greetings, I have a pipe delimited flat file database and I need a little guidance in searching and modifying with a perl routine. The database has many lines constructed as below s...
Is it possible for perl open Excel work book and save it in csv format let say my work book is abcd.xls and I want to save it as abcd.csv format