G'day Maelstrom,
It seems like you are comparing Perl with some other language. If you tell us what that is, we can probably provide a better answer. Links to (some) "countless guides" would no doubt also help. The following may be sufficient for your needs; if not, please provide the additional information that I've indicated.
Perl uses different tokens for a+, w+, and so on; see "open: About modes".
That documentation agrees with you. Here's an extract (+< corresponds to r+; +> to w+):
"... +< is almost always preferred for read/write updates--the +> mode would clobber the file first."
I don't think the requirement you describe for seek and truncate exists in Perl. Having said that, Perl does have seek(), tell() and truncate().
— Ken
In reply to Re: What is the point of a+ and w+ when opening files?
by kcott
in thread What is the point of a+ and w+ when opening files?
by Maelstrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |