in reply to File Slurping Problem in Win32 machine

You could always use read() instead of using <> to slurp in the whole file. I normally use that when dealing with files that contain binary data.
sub EditFile{ my $file = shift; open INFILE,$file; binmode INFILE; my ($buffer, $text); while(read(INFILE, $text, 4096, length($text))){} #Alternative Read method #while(read(INFILE, $buffer, 4096)){ # $text .= $buffer; #} ## close INFILE; # edit text open OUTFILE,">$file"; binmode OUTFILE; print OUTFILE $text; close OUTFILE; }

- Tom