Jonathan "Dataweaver" Lang enquired:

> Will ther be any ambiguity between Pod and wraparound operators that
> begin with =?

No. Lines that start with an '=' that is *immediately* followed by an
identifier are always Pod. If there's a space after the '=' it's always
an assignment. You could *create* an ambiguity, by defining an operator
such as &infix:<=x> but then you get precisely what you deserve. ;-)

>    if really_long_expression
>       == value { ... } # Pod, or equality operator?

Always equality. Pod is always =IDENT. Only.


> Note the recent revisions to how Perl comments work - in particular,
> an embedded comment is now spelled "#`[ ... ]".  Should "embedded
> attached Pod" be spelled as "#=`[ ... ]"?

Larry and I discussed this and concluded that #=[ is better.
I can see the logic of #`[= but I just can't see the aesthetics of it.
I'd much rather have to only look at the second character to determine
it's Pod, not a vanilla comment. Besides, I think people will simply learn
that #<symbol>[ is an embedded comment, where <symbol> specifies
what kind of comment it is (I can certainly envisage other kinds
besides just vanilla and Pod-flavoured)

Damian

Reply via email to