in reply to •Re: split mailbox one-liner
in thread split mailbox one-liner

I'm trying to do something like this but instead of comparing it to From I'm comparing it to From:, but it doesn't seem to be working. Here's the code if ($line =~ /^From:\b/){whatever}

Replies are listed 'Best First'.
•Re: Re: •Re: split mailbox one-liner
by merlyn (Sage) on Mar 26, 2002 at 14:19 UTC
    That's because a normal "mailbox format" file isn't delimited by "From:"... it's delimited by "^From ". What kind of file do you have that might possibly be delimited by From:?

    -- Randal L. Schwartz, Perl hacker