-
Notifications
You must be signed in to change notification settings - Fork 576
[doc] pod/perlvar.pod: should the <<>> operator be mentioned more often? #23100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I remember looking for diamond in perltoc and not finding it. So yes, this is a problem |
It is only mentioned in prose in https://perldoc.perl.org/perlop#I/O-Operators, incidentally the |
But as far as mentioning it in perlvar as the OP states, certainly more variable descriptions could use it in examples or descriptions. |
Opened #23224 for the tangentially related issue of finding operators by name. |
@khwilliamson I think that PR #23250 addresses issue #23224 more than it address this one. While mentioning operator by name greatly improves the documentation, my original inquiry was more about the double diamond operator often being omitted in variable descriptions where it might make sense to mention it alongside the regular diamond operator, e.g. see the $ARGV description:
|
Where
pod/perlvar.pod
Description
Multiple variables interact with the double diamond operator (
<<>>
) in the same way they interact with the single diamond operator (<>
), e.g.$ARGV
,ARGV
,$.
,${^OPEN}
. However, only the${^OPEN}
description explicitly mentions<<>>
("or the related<>
and<<>>
operators"). I was wondering if it would be worthwhile to modify the other mentions in a similar way as well, e.g. by introducing phrasing like "<>
/<<>>
operators" instead of "<>
operator". On the one hand it is more verbose, on the other, newcomers may not be aware of the<<>>
operator at all as the majority of the coding examples in the wild probably use<>
.The text was updated successfully, but these errors were encountered: