--- "FIEDRICH,JAMIE (HP-USA,ex1)" <[EMAIL PROTECTED]> wrote:
> I have a text file in which I want to find a specific string - call
> it a heading.  Once I've found the string (heading), I want to stuff
> the next line (content) into a variable.
> 
> What is the most effective way to do this?

Most? I dunno. =o)

But if they're coming in on seperate line reads, try something like

  while(<FILE>) {
    $content = $_ if /$header/;
  }

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to