Show quoted text> Since «» codes don't work,
They don't? They do for me (under 5.10 on MacOS).
In what way don't they work? Can you send me a small example?
Or perhaps just try this one:
-----cut----------cut----------cut----------cut----------cut-----
use Perl6::Perldoc::Parser;
use Perl6::Perldoc::To::Xhtml;
use strict;
use warnings;
my $representation
= Perl6::Perldoc::Parser->parse(\*DATA, {all_pod=>1})
->report_errors('Bad Pod');
print $representation->{tree}->to_xhtml({});
__DATA__
The C«=>» operator
-----cut----------cut----------cut----------cut----------cut-----
Show quoted text> I'm wondering if there is another way to
> write "the C«=>» operator".
Not easily. You could use:
=config C<> :allow<E>
The C<=E<gt>> operator
but that's hardly an improvement. :-(
Show quoted text> The only way I can think of is C<< => >>, which doesn't work as well as
> in Pod 5, because Pod 6 says that the surrounding spaces are
> significant. So I'd have to write "theC<< => >>operator", which I think
> we can agree is suboptimal.
It certainly is. I suppose we could consider adopting the newer Perl 6
convention that generally allows *any* kind of balanced and/or repeated
delimiter (as in comments and delimited strings now). In which case you
could write:
The C{=>} operator
But I'm nervous about allowing that, as it suddenly makes a lot more
ordinary text magical. Perhaps as a compromise, we could say that only
<...> and «...» can be used as single brackets, but that two-or-more
brackets can be of any balanced kind. Which gives us:
The C{{=>}} operator
...which seems a reasonable compromise.
What do you think?
Damian
be used