What errors do you have?
This works for me:
open my $fh, "+<", $filename or die $!; truncate $fh,$pos or die $!;
or directly
truncate $filename,$pos or die $!;Hope this helps
citromatik
In reply to Re: truncate or trunc
by citromatik
in thread truncate or trunc
by jscjso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |