in reply to Re^2: problems with truncate function (deparse)
in thread problems with truncate function
totruncate $fh,0 || die "could not truncate $dcs_log_file: $!";
Now i also understand the difference between || and or :-)truncate $fh, die("could not truncate ${log_file}: $!");
In || it makes 0|| before truncate.
with or it would make the truncate before
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: problems with truncate function (deparse)
by MidLifeXis (Monsignor) on Jun 26, 2013 at 12:17 UTC |