in reply to Re: Help with argument to a subroutinein thread Help with argument to a subroutine
Or
while (<STDIN>) { chomp; last if !$_; # or other suitable termination test $header .= "$_\n"; } [download]