Hi, I am trying to parse a mail to get the body of a mail in the simplist way possible. I have tried Email::Simple but a hmtl tags are returned when I parse the mail which is no good.
I have managed to get the body with no tags using MIME::Parser BUT I am having a few issues with it:
(Note ...
Had a mare with that also, so I use MIME::Lite and all worked fine.
Works well for attachments also.
my $msg = MIME::Lite->new (
From => $from_address,
To => $to_address,
Cc => $from_address,
Subject => $subject,
Type =>'multipart/mixed'
) or die "Error...
I am unzipping 2 logfiles from 2 different server. One file is name serverA.zip and the other server2.zip. However there is 1 file inside each which is always named by the date and both are the same (ie the file inside both zip files have the same name).
How can I rename them to avoid a...
Sorry this is it.
Do you mean read the contents of a file into a string. if so,
# get list of messages from $Backup_Path directory
local( *EM_DH, *FH, $/ );
opendir(EM_DH, $Backup_Path) or die "Cannot find directory $Backup_Path $!";
my @Files= readdir EM_DH;
foreach (@Files){
#...
Does you mean read the contents of a file into a string. if so,
# get list of messages from $Backup_Path directory
local( *EM_DH, *FH, $/ );
opendir(EM_DH, $Backup_Path) or die "Cannot find directory $Backup_Path $!";
my @Files= readdir EM_DH;
# loop through all messages sent in last 24...
ok i have found the following script. How can I upload an xml file called test.xml with it
use LWP::UserAgent;
use HTTP::Request;
my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30, );
my @greeting = <>; #-- Read file containing XML struct to send
my $data_to_send...
I have never had to work with XML before and I am looking for a way to read an XML file post it to a url and read the response. Any help would be great as this is a complete new one for me
I have the 2 original files and both are based on the same machine time.
However I cant use the sequential counter for the hash key as there is no guarantee the time and counter combo in file 1 will not be found in file 2.
eg 12:15:32-1 could very well be in file 2 also.
I have a large daily log file created from merging 2 smaller log files. I need to sort the file by time. All of the fields are delimited by space. Originally I was thinking of using a hash with the Time as a key and the line as a value but I cant as not all the times are unique.
Any ideas...
I am having one of those monday mornings!!!! Can some please tell me why the following 2 lines print the string with the array position at the begining of each line.
eg
0Hello
1I am well
2How are you
.
.
.
I know it is simple but i cant see it.
$FileString doesnt contain the index at all...
I am trying to install DBD::MySQL but when I perl makefile.pl I get the following error:
Can't exec "mysql_config": No such file or directory at makefile.pl line 7
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed...
I am using Cygwin and I have downloaded the lastest version of this module (DBI) which I wish to install:
I type:
perl makefile.pl
make
make test
make install.
When I run the script calling this module i get the following error. I have installed this module with ppm previously with no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.