Hi,
The current version of PPC 0019 proposes a here-doc version of `qt`:
> To provide a heredoc version of qt, this:
>
> <<qt{END} TEXT END
>
> will apply qt-like interpolation to TEXT.
Once this is implemented, a nice addition (mostly for consistency and
cuteness) would be to add support for `<<q` (single quotes here-doc),
`<<qq` (double quotes here-doc) and `<<qx` (backticks here-doc).
I note that perlop says:
> Additionally, quoting rules for the end-of-string identifier are
> unrelated to Perl's quoting rules. "q()", "qq()", and the like are not
> supported in place of '' and "", and the only interpolation is for
> backslashing the quoting character.
Adding support for q(), qq() and qx() in place of '', "" and `` to define
end-of-string identifiers (for consistency with the addition of qt() there)
would behave the same as the regular quotes already do in this case, with
the only interpolation being for backslashing the quoting character.
--
Philippe Bruhat (BooK)
The only certain bet in gambling is that it leads to more gambling
(Moral from Groo #11 (Image))
The current version of PPC 0019 proposes a here-doc version of `qt`:
> To provide a heredoc version of qt, this:
>
> <<qt{END} TEXT END
>
> will apply qt-like interpolation to TEXT.
Once this is implemented, a nice addition (mostly for consistency and
cuteness) would be to add support for `<<q` (single quotes here-doc),
`<<qq` (double quotes here-doc) and `<<qx` (backticks here-doc).
I note that perlop says:
> Additionally, quoting rules for the end-of-string identifier are
> unrelated to Perl's quoting rules. "q()", "qq()", and the like are not
> supported in place of '' and "", and the only interpolation is for
> backslashing the quoting character.
Adding support for q(), qq() and qx() in place of '', "" and `` to define
end-of-string identifiers (for consistency with the addition of qt() there)
would behave the same as the regular quotes already do in this case, with
the only interpolation being for backslashing the quoting character.
--
Philippe Bruhat (BooK)
The only certain bet in gambling is that it leads to more gambling
(Moral from Groo #11 (Image))