Perl is a deep language, and oftentimes questions are more about using the
modules than they are about Perl in particular.  I'm sorry for the
(non)-answer, but your next step is to open the file mentioned
(/usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm) and see why you
got the error (was the calling function supposed to have supplied an
argument?  Is there an error in the module that uninitializes the value
for some reason?).

This is one of the simplest examples of a problem that's soooooo much
easier to solve when the source is available.

If you'd like to send/post the script, we may be able to dig into it a
bit more ...



Chris Frederick wrote:
> Any perl gurus here?  I'm trying to write what should be a simple script 
> that connects to an imap account, goes through all the folders and 
> outputs a line for each folder that has unread messages with the number 
> unread.  I can get connected, 
> logged in, and even select the INBOX, but any time I try to access the 
> $imap->folders() function, I get this error:
>
> Use of uninitialized value in pattern match (m//) at 
> /usr/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 2163, <GEN0> 
> line 3.
>
> I can't find anything on this one.  I've looked everywhere I can think 
> of and changed a lot of things in the code to try to step around this. 
> I'm really new to perl (this is my first script), and all the modules 
> have been loaded through gentoo portage.  Has anyone here run into this, 
> or can anyone give me a hand?
>
> Thanks all,
> Chris
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>