On Tuesday 06 July 2004 03:47, Bastian Angerstein wrote: > > my $data = tell DATA; > print "$data\n"; > truncate $0, $data; > > This looks very promising to me. > Therefor that the host is a Unixsystem, I might be able to solve my > problem. > > I donīt really understand $0 at the moment. > I thought its the name the script was started with.
Yes it is. That is after all the file that you want to truncate. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>