in reply to File Truncation Question
Strip down your script to just the open statement and look at it again. If you still can't see what's wrong, then post the code so we can all see it.
In the meantime the following works for me (no added whitespace):
Hope that helps...#!/usr/bin/perl -w use strict; use CGI ':standard'; open FH, '> data.txt' or die $!; print FH 'testing123'; close FH; print header(), start_html(-title => "test"); print "finished"; print end_html();
|
|---|