On Jan 3, Booher Timothy B 1stLt AFRL/MNAC said:

>I hope this serves as an answer . . .

Ok, I see.  Then in your case, you'd probably want to do something like:

  for (split /\n/, $buffer) {
    ($field, $value) = split /\s*:\s+/;
    $field =~ s/^\s+//;
    $value =~ s/\s+$//;
    # do whatever
  }

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to