Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Bernie Cosell
December 3, 2008, 6:12 pm
rate this thread
[that'll be fed to Net::NNTP->post]. Post's doc says it wants an array
[I assume one line per entry, each terminated by a newline, as for
'article'] My problem is extracting the header-array from
Mail::Header. I see ->as_string, but I can't believe that the best/only
way to do it is: my @hdrs = join("\n", split(/\n/, $hdr->as_string());
[I can do that easily, enough, of course, I was just wondering if I'm
missing something obvious about how to get the header-array *out* of
Bernie Cosell Fantasy Farm
email@example.com Pearisburg, VA
Re: Dumb Mail::Header question: getting the header
I thought about that but that still seems to be a bit tricky [compared
with the join/split on as_string.] It'd have to be something like:
my @hdr = map "$_: ".$hdr->get($_), $hdr->tags
Although I don't think the docs are real clear on how I'd get that
properly refolded ['get' explicitly unfolds the header and I didn't
see how to fix that].
- » does archive::zip support extracting large zip file, such as 12G?
- — Next thread in » PERL Modules Announcements