At 10:34 am +1100 6/11/02, Ken Williams wrote:

This line has the exact same problem as your last script....

No, I have now discovered the true cause of the problem. Perl requires the "-" and the "@" to be escaped. Quite why, perhaps someone can tell me, but I suspect Apple's own filename is illegal. However, this does not explain why

cd [EMAIL PROTECTED]

works in the shell wqithout complaint.

This does work:

#!/usr/bin/perl
"$ENV{HOME}/Library/Mail/POP\-eremita\@pop3.demon.co.uk";
opendir ACC, $acc;
for (readdir ACC) {/\.mbox$/ and print "$_\n"}

$result = <<FIN
Deleted Messages.mbox
Drafts.mbox
INBOX.mbox
FIN
#


How, now, do I convert the contents of $app,
"[EMAIL PROTECTED]" to
"/Library/Mail/POP\-eremita\@pop3.demon.co.uk" ?

And what other characters will need to be escaped?

JD



Reply via email to