Vikter,
Thanks
Here is the code I was tring to get to work under Perl for Win32.
This script is to parse a large text file into a format that I need.
#!/usr/local/bin/perl
$count=0;
# Track if we have read a "beginning of sentence"
$bos=0;
# Track if we have read a "continuation of sentence"
$cos=0;
# read in the file
@input = <STDIN>;
# trim off the newline from the end of each line
chop (@input);
# Process the file
while ($input[$count] ne ""

{
# strip leading white space
$input[$count] =~ s/^[ \t]+//;
# Look for "beginning of sentence"
if (substr($input[$count],0,2) eq "o "

{
if ($bos || $cos) {
print("\n"

;
$cos=0;
}
$input[$count] =~ s/^o //;
print ($input[$count]);
$bos=1;
}
else {
print (" ",$input[$count]);
$bos=0;
$cos=1;
}
$count++;
}