Perl setup

2002-04-03 Thread Brian Johnson
Somewhere along the way I've screwed up my perl setup it's looking for modules in i586-linux and /usr/local/lib/perl5 directories instead of i586-linux and /usr/lib/perl5 Can anyone tell what settings I need to change? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

push and for loops help

2002-03-19 Thread Brian Johnson
I have a section of code that uses Mail::Internet to parse a mbox file - this part works Later in the code, I need to cycle through the mbox file again, and I thought that I could store it in memory instead of re-reading the file I was trying to use push @items, $item; and then use a for loop (

Perl & SQL help! Need to insert records into two tables

2002-03-12 Thread Brian Johnson
I'm trying to add a new record (new values) into one table and I have a second table that refers to the record number of the first table. I can get the SQL statement to grab the current value of the incrementing record number to work, but I need to translate this to operate in perl (I'm not used

More string manipulation

2002-02-15 Thread Brian Johnson
I have the following code that I need a little advice on. The $record->{month} returns the month in integer format (ie 1, 2, 3), I need to change it to to a three letter string (ie Jan, Feb, Mar) foreach $item (@items) { my $record; my $test; foreach $record (@{$PDB->{records}}) {

String manipulation help needed

2002-02-14 Thread Brian Johnson
I need a string in the form Wed, 18 Jul 2001 14:20 Of course my line doesn't quite cut it. my $emaildate = join " ", $record->{day}, $record->{month}, $record->{year}, $record->{hour}, $record->{minute}; I'm weak in string manipulation in perl - any help people? -- To unsubscribe, e-mai

mbox (email) handlers?

2002-02-14 Thread Brian Johnson
Does anyone have suggestions for Perl packages that would allow me work through email mbox's and change the read status of some emails and delete some emails? Pretty much everything I can find is limited to reading mbox's (or I would have to cycle through a mbox a write emails to keep and mdofied