Yes, this project that I undertook as a first time perl programmer is making me dizzy at times. Hopefully it will all be worth it in the end. Thanks for all your help guys!
Woah Brigmar, that is beautiful, I was using kevin's code along with some earlier code to get this:
# Retrieve Mail.
sub retrieveit {
# initiate connection
# default timeout = 120 sec
$conn = Net::POP3->new($host) or die("ERROR: Unable to connect.\n");
# login
$numMsg =...
Kevin,
I am sending out messages with a pre defined subject line to a ticketing system that sends back the same subject line along with a ticket number. Since I know what the structure is I have already made a parsing routine to extract the data from the subject line. The only thing I was stuck...
Hello there,
I am a newbie when it comes to Perl. I need to retrieve message subject lines from a POP3 mailbox. I have started out using Net::POP3 to authenticate and get the number of messages in the POP3 mailbox. I used the following code to accomplish this:
#!/usr/local/bin/perl
#
use...
Ahhh see I didn't understand the while statement there. All you have to do is say while (data file) and then perform the actions within the while loop. I read the documentation but couldn't figure out where to specify what file to act upon with the Text::CSV module. I am new to this, and many...
Hello there.
I have a CSV file that has some data including a timestamp (column 6). I am trying to parse out the last field of data from each row in the CSV file and then use each field separately to compare with one another. Basically I am trying to see if the last two fields are 300 seconds...
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.