View Single Post
  #12 (permalink)  
Old 05-23-2008, 05:53 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 93
Rep Power: 7
KevinADC is on a distinguished road
Default Re: Regex Expressions

yes, chomp() the input from stdin:

while ( chomp(my $line = <STDIN>)) {
$_[0] .= $line;
}
Reply With Quote