Hey all

Im trying to run the following

system ('fetchmail -f '.$fetchmailconf.' -a -k -r \"'.$folderitem.'\"');

What im getting is:

Processing INBOX.Astro Computers :
for [EMAIL PROTECTED]":     <- this is wrong, must be INBOX.Astro Computers

My code is as so:

foreach my $folderitem (@folderlist){

   chomp $folderitem;

   $newfolderitem = $folderitem;
   $newfolderitem =~ s/\s/_/g;
   print "Processing $folderitem : \n";

   system ('fetchmail -f '.$fetchmailconf.' -a -k -r \"'.$folderitem.'\"');

}

exit;

Basically what happening is, when I pass the variable to system() the spaces 
are not escaped etc, and therefore fetchmail
only processing only half the string.

If anyone knows how I can achieve in processing the string as is, would be most 
grateful

Kind Regards
Brent Clark

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to